From 3465d3fc10973af8f9afda362a6ec676ff8123ec Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 24 May 2020 01:07:50 +0300 Subject: [PATCH] Added param validations to build script --- build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.sh b/build.sh index 43cbaf42d..c641709a8 100644 --- a/build.sh +++ b/build.sh @@ -3,6 +3,18 @@ RED='\033[0;31m' NC='\033[0m' # No Color +if [ -z "$1" ] +then + echo "Missing tag number" + exit 1 +fi + +if [ -z "$2" ] +then + echo "Missing version number" + exit 1 +fi + echo "Updating git repository $1 / $2" git fetch origin