Throw an error if version is not specified in build script

This commit is contained in:
Gabe Kangas 2020-06-17 23:54:55 -07:00
parent 6bc10dc812
commit 1c3031acb0

View file

@ -9,6 +9,11 @@ ARCH=(amd64 amd64)
# Version # Version
VERSION=$1 VERSION=$1
if [[ -z "${VERSION}" ]]; then
echo "Version must be specified when running build"
fi
[[ -z "${VERSION}" ]] && VERSION='unknownver' || VERSION="${VERSION}" [[ -z "${VERSION}" ]] && VERSION='unknownver' || VERSION="${VERSION}"
GIT_COMMIT=$(git rev-list -1 HEAD) GIT_COMMIT=$(git rev-list -1 HEAD)