Fix infinite 503

This commit is contained in:
Maniack Crudelis 2017-11-23 16:24:17 +01:00 committed by GitHub
parent 1487919656
commit 0cabde172b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,7 +248,7 @@ CHECK_URL () {
ECHO_FORMAT "Service temporarily unavailable\n" "lyellow" "bold" ECHO_FORMAT "Service temporarily unavailable\n" "lyellow" "bold"
# 3 successive error are allowed # 3 successive error are allowed
http503=$(( http503 + 1 )) http503=$(( http503 + 1 ))
if [ $http503 -eq 3 ]; then if [ $http503 -ge 3 ]; then
# Over 3, it's definitively an error # Over 3, it's definitively an error
curl_error=1 curl_error=1
else else