Indentation

Indentation for new outer loop
This commit is contained in:
Josh committed 2015-03-24 23:26:31 -04:00
1 parent 3b252d43c6
commit 48f76bcfef
1 file changed
+13 -13
+13 -13
View File
@@ -108,21 +108,21 @@ UNCHECKED=1
for (( i=1; i <= RETRIES && UNCHECKED>0 ; i++ )) for (( i=1; i <= RETRIES && UNCHECKED>0 ; i++ ))
do do
UNCHECKED=0 UNCHECKED=0
dokku_log_info1 "Attempt $i/$RETRIES Waiting for $WAIT seconds ..." dokku_log_info1 "Attempt $i/$RETRIES Waiting for $WAIT seconds ..."
sleep $WAIT sleep $WAIT
# -q do not use .curlrc (must come first) # -q do not use .curlrc (must come first)
# --compressed Test compression handled correctly # --compressed Test compression handled correctly
# --fail Fail on server errors (4xx, 5xx) # --fail Fail on server errors (4xx, 5xx)
# --location Follow redirects # --location Follow redirects
CURL_OPTIONS="-q --compressed --fail --location --max-time $TIMEOUT" CURL_OPTIONS="-q --compressed --fail --location --max-time $TIMEOUT"
exec < "$FILENAME" exec < "$FILENAME"
while read CHECK_URL EXPECTED ; do while read CHECK_URL EXPECTED ; do
# Ignore empty lines and lines starting with # # Ignore empty lines and lines starting with #
# shellcheck disable=SC1001 # shellcheck disable=SC1001
[[ -z "$CHECK_URL" || "$CHECK_URL" =~ ^\# ]] && continue [[ -z "$CHECK_URL" || "$CHECK_URL" =~ ^\# ]] && continue
@@ -177,12 +177,12 @@ while read CHECK_URL EXPECTED ; do
UNCHECKED=$(expr $UNCHECKED + 1 ) UNCHECKED=$(expr $UNCHECKED + 1 )
fi fi
done done
if [ $UNCHECKED -gt 0 ]; then if [ $UNCHECKED -gt 0 ]; then
dokku_log_warn "Check attempt $i/$RETRIES failed. Retrying..." dokku_log_warn "Check attempt $i/$RETRIES failed. Retrying..."
continue; continue;
fi fi
done done
if [ $UNCHECKED -gt 0 ]; then if [ $UNCHECKED -gt 0 ]; then