diff --git a/scripts/portal-down.sh b/scripts/portal-down.sh index 476ce837..9fc110d4 100755 --- a/scripts/portal-down.sh +++ b/scripts/portal-down.sh @@ -20,7 +20,7 @@ fi countdown() { local secs=$1 - while [ $secs -gt 0 ]; do + while [ "$secs" -gt 0 ]; do echo -ne "Waiting $secs\033[0K\r" sleep 1 : $((secs--)) @@ -28,10 +28,10 @@ countdown() { } # delay disabling the portal -countdown $delay +countdown "$delay" # stop health-check so the server is taken our of load balancer -docker exec health-check cli disable $reason +docker exec health-check cli disable "$reason" # then wait 5 minutes for the load balancer to propagate the dns records -countdown $timeout +countdown "$timeout"