diff --git a/scripts/upgrade b/scripts/upgrade index 8c36837..045e126 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,10 +103,10 @@ then inc=0 # Have to wait the time that gitlab reload - while [ $status_code == "502" ] && [ $inc < 10 ] + while [ $status_code == "502" ] && [ $inc -lt 10 ] do sleep 10; status_code=$(curl -s -o /dev/null -w '%{http_code}' "$domain${path_url%/}") ((inc++)) done; -fi; \ No newline at end of file +fi;