From 79bae26fcf46f29d39d26fbbb900871d37551866 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 7 Jun 2022 16:27:04 +0200 Subject: [PATCH] fix scripts/portal-down.sh --- scripts/portal-down.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"