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)"