From 18fced60e63321118eb81cfd55f3c546b50efeb6 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 14 Jul 2020 08:45:32 +0200 Subject: [PATCH] get-mods: Only archive $BRANCH if it exists --- get-mods.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-mods.sh b/get-mods.sh index e203e04..f1cf4f7 100755 --- a/get-mods.sh +++ b/get-mods.sh @@ -20,7 +20,7 @@ get_special () { REF="$(get_tag)" ;; *) - if [ -n "$BRANCH" ]; then + if [ -n "$BRANCH" ] && git -C dockerweb2-temp show -s --oneline "$BRANCH"; then REF="$BRANCH" else REF="$(get_tag)"