get-mods: Only archive $BRANCH if it exists

This commit is contained in:
Johannes Meyer 2020-07-14 08:45:32 +02:00
parent 67ab2cd4a1
commit 18fced60e6

View File

@ -20,7 +20,7 @@ get_special () {
REF="$(get_tag)" REF="$(get_tag)"
;; ;;
*) *)
if [ -n "$BRANCH" ]; then if [ -n "$BRANCH" ] && git -C dockerweb2-temp show -s --oneline "$BRANCH"; then
REF="$BRANCH" REF="$BRANCH"
else else
REF="$(get_tag)" REF="$(get_tag)"