fallback to git hash in publish script

This commit is contained in:
Dima Gerasimov 2019-01-16 21:48:45 +00:00 committed by Dmitrii Gerasimov
parent 03ce431546
commit 4a0439567d

View file

@ -3,7 +3,11 @@ set -eux
VERSION="$(git tag --points-at)"
[[ -n $VERSION ]]
if [[ ! -n $VERSION ]]; then
>&2 echo "Dirty build!"
VERSION="$(git rev-parse --short HEAD)"
fi
OUT="grasp-$VERSION.zip"