From 68f4782f8b42d32cec9453e77c65de1ced28598d Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 9 Oct 2024 13:53:35 +0200 Subject: [PATCH] bin/nb-update --- bin/nb-update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.3