mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Quick fix: use quotes in bash comparison
This commit is contained in:
parent
346e36f52b
commit
27786ebe65
@ -3,11 +3,11 @@
|
|||||||
IMAGE=$1
|
IMAGE=$1
|
||||||
retries=0
|
retries=0
|
||||||
|
|
||||||
while [ $retries -lt 3 ]; do
|
while [ "$retries" -lt 3 ]; do
|
||||||
let retries=retries+1
|
let retries=retries+1
|
||||||
docker push $IMAGE
|
docker push $IMAGE
|
||||||
ret=$?
|
ret=$?
|
||||||
if [ "$ret" -eq "0" ]; then
|
if [ "$ret" -eq 0 ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user