]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-repo-update
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 13 Oct 2024 07:45:35 +0000 (09:45 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 13 Oct 2024 07:45:35 +0000 (09:45 +0200)
bin/nb-repo-update

index 42f7ae1dac548220a8bceaa12c1c0eaaea5947cf..ccafd83f426a3b6ec0c9d542f224104ce4dd2bf4 100755 (executable)
@@ -101,7 +101,6 @@ trap "exec {F_INDENT1}>&-; exec {F_INDENT2}>&-; rm -f '$TMP'" EXIT
 #----------------------------------------------------------
 # Git pull 
 #
-#REPO_BRANCH=$(git branch --show-current) || exit
 REPO_BRANCH=$(git branch|awk 'BEGIN{ex=1}/^\*/{print $2;ex=0}END{exit ex}') || exit
 [ -n "$REPO_BRANCH" ] || exit