mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Throw an error if version is not specified in build script
This commit is contained in:
parent
6bc10dc812
commit
1c3031acb0
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue