dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
Log | Files | Refs

commit 031056e93fed21ff4fbb1503510e0ec1b6a51944
parent 7eb61a2ed969bd4a1c51a8aae441ed753ba71bd3
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Fri,  3 Nov 2023 08:54:05 +0200

Update only if we get the --update flag.

Diffstat:
Mbin/get-nitter-instances | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/get-nitter-instances b/bin/get-nitter-instances @@ -11,10 +11,12 @@ fi nitter_wiki_directory="$HOME/.cache/get-nitter-instances" -do_update="$1" +if [ "$1" = "--update" ]; then + do_update="true" +fi (git clone https://github.com/zedeus/nitter.wiki.git "$nitter_wiki_directory" > /dev/null 2>&1 || - (if [ "$do_update" = "--update" ]; then + (if [ -n "$do_update" ]; then cd "$nitter_wiki_directory" git pull -v > /dev/null 2>&1 fi)