Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Make docker/image-tag work on MacOS again
Browse files Browse the repository at this point in the history
The sigil `;&` is a Bash v4-ism, and MacOS ships only with Bash
3.2. To get it working, I just duplicated the line that would be run
by the `;&` fallthrough.
  • Loading branch information
squaremo committed Apr 1, 2020
1 parent 6af82a6 commit 46213d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/image-tag
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case ${#HEAD_TAGS[@]} in
if [[ "${TAG2}" == v* && ${TAG2%$TAG1} == "v" ]]; then
echo ${TAG1}; exit 0
fi
;&
echo "error: more than one tag pointing to HEAD" >&2; exit 1; ;;

*) echo "error: more than one tag pointing to HEAD" >&2; exit 1; ;;
esac
Expand Down

0 comments on commit 46213d6

Please sign in to comment.