From: Nicolas Boisselier Date: Wed, 9 Oct 2024 11:53:35 +0000 (+0200) Subject: bin/nb-update X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=68f4782f8b42d32cec9453e77c65de1ced28598d;p=nb.git bin/nb-update --- diff --git a/bin/nb-update b/bin/nb-update index a7895975..eafbf1a0 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -178,7 +178,10 @@ for dir in $(nb_repos); do if [ "$PULL" = "1" ] then #exec {F_INDENT}> >(sed 's/^/ /') - exec_user $user "nb-repo-install --pull" #>&$F_INDENT 2>&1 + opt="--pull" + [ "$CLEANUP" = "1" ] && opt="$opt --cleanup" + opt="${opt# *}" + exec_user $user "nb-repo-install $opt" #>&$F_INDENT 2>&1 ex_repo=$? [ "$ex_repo" = "0" ] || ex=$ex_repo #echo $ex_repo