diff --git a/.drone/scripts/initialise-image.sh b/.drone/scripts/initialise-image.sh index 2444c60..0aaac25 100644 --- a/.drone/scripts/initialise-image.sh +++ b/.drone/scripts/initialise-image.sh @@ -5,7 +5,7 @@ do && docker tag $2 $1$2 \ && docker push $1$2 && break # substitute your command here n=$((n+1)) - if [ $n ge 2 ]; then + if [ $n -ge 2 ]; then echo "initialise failed" exit 1 fi diff --git a/.drone/scripts/login.sh b/.drone/scripts/login.sh index 3ef3b17..b885720 100644 --- a/.drone/scripts/login.sh +++ b/.drone/scripts/login.sh @@ -5,7 +5,7 @@ do && break # substitute your command here n=$((n+1)) - if [ $n ge 2 ]; then + if [ $n -ge 2 ]; then echo "login failed" exit 1 fi