Added param validations to build script
This commit is contained in:
parent
f85c471017
commit
3465d3fc10
12
build.sh
12
build.sh
|
@ -3,6 +3,18 @@
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NC='\033[0m' # No Color
|
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"
|
echo "Updating git repository $1 / $2"
|
||||||
|
|
||||||
git fetch origin
|
git fetch origin
|
||||||
|
|
Loading…
Reference in a new issue