added integer check
This commit is contained in:
parent
4b34394d62
commit
01dfd0769f
1 changed files with 8 additions and 0 deletions
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue