From c4519cf0621236a1272a5a4462ba070faafdfef1 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 13 Oct 2024 09:33:10 +0200 Subject: [PATCH] bin/nb-repo-update --- bin/nb-repo-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/nb-repo-update b/bin/nb-repo-update index f5da6358..590d8307 100755 --- a/bin/nb-repo-update +++ b/bin/nb-repo-update @@ -97,7 +97,8 @@ trap 'exec {F_INDENT1}>&-; exec {F_INDENT2}>&-;' EXIT #---------------------------------------------------------- # Git pull # -REPO_BRANCH=$(git branch --show-current) || exit +#REPO_BRANCH=$(git branch --show-current) || exit +REPO_BRANCH=$(awk 'BEGIN{ex=1}/^\*/{print $2;ex=0}END{exit ex}') || exit [ -n "$REPO_BRANCH" ] || exit if [ -r ~/.ssh/agent.sh ] -- 2.47.3