added integer check

This commit is contained in:
Andrey Marchukov 2023-05-24 12:28:53 +04:00
parent 4b34394d62
commit 01dfd0769f

View file

@ -20,6 +20,14 @@ jobs:
echo "Empty Response" echo "Empty Response"
exit 1 exit 1
fi fi
if [ "$REMOTEAPPVER" -eq "$REMOTEAPPVER" ] 2>/dev/null
then
echo "REMOTEAPPVER is an integer"
exit 0
else
echo "ERROR: parameter must be an integer"
exit 1
fi
if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then
echo "$REMOTEAPPVER" >sandstorm.version echo "$REMOTEAPPVER" >sandstorm.version
exit 0 exit 0