Throw an error if version is not specified in build script
This commit is contained in:
parent
6bc10dc812
commit
1c3031acb0
@ -9,6 +9,11 @@ ARCH=(amd64 amd64)
|
||||
|
||||
# Version
|
||||
VERSION=$1
|
||||
|
||||
if [[ -z "${VERSION}" ]]; then
|
||||
echo "Version must be specified when running build"
|
||||
fi
|
||||
|
||||
[[ -z "${VERSION}" ]] && VERSION='unknownver' || VERSION="${VERSION}"
|
||||
GIT_COMMIT=$(git rev-list -1 HEAD)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user