Quick fix: use quotes in bash comparison

This commit is contained in:
Pablo Carranza Vélez 2015-09-10 16:11:05 +00:00
parent 346e36f52b
commit 27786ebe65

View File

@ -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