Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Throw an error if version is not specified in build script

Gabe Kangas1c3031acb0b1
diff --git a/scripts/build.sh b/scripts/build.sh
index 457700d1e2..631a62ab02 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -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)