Fix variable name

This commit is contained in:
William Wernert
2021-11-16 10:53:22 -05:00
parent 57377e0a0e
commit 4e3f43bee4

View File

@@ -152,11 +152,11 @@ __check_url_arr() {
done
if [[ $ret == 0 ]]; then
success_str="Successfully reached $url"
url_success_str="Successfully reached $url"
if [[ $status -ge 400 ]]; then
echo "$warning_prefix $success_str but server responded with HTTP code $status." >> "$preflight_log"
echo "$warning_prefix $url_success_str but server responded with HTTP code $status." >> "$preflight_log"
else
echo "$info_prefix $success_str." >> "$preflight_log"
printf '%s\n' "$info_prefix $url_success_str." >> "$preflight_log"
fi
else
ret_code=1