diff --git a/publish b/publish index 3452cdd..7d5fb35 100755 --- a/publish +++ b/publish @@ -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"