From 0d7dd1b2561a7665deacf69d6e0328abe7df9fd8 Mon Sep 17 00:00:00 2001 From: Frostebite Date: Sun, 9 Aug 2020 03:07:17 +0100 Subject: [PATCH] Fix --- ApplyClusterAndAcquireLock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplyClusterAndAcquireLock.sh b/ApplyClusterAndAcquireLock.sh index fda4ebca..4444c479 100755 --- a/ApplyClusterAndAcquireLock.sh +++ b/ApplyClusterAndAcquireLock.sh @@ -15,7 +15,7 @@ GKE_ZONE=$3 sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry" attempts=0 -while [ "$attempts" == "0" ] +while [ $attempts -gt 0 ] do retry -s 15 -t 20 -v ' STATUS=$(gcloud container clusters list --format="json" --project $GKE_PROJECT | @@ -63,5 +63,5 @@ metadata: app: unity-builder EOF && exit 0 -attempts=attempts+1 +attempts=$(($attempts+1)) done