Fix curl_error check

This commit is contained in:
Alexandre Aubin 2020-11-30 14:24:57 +01:00 committed by GitHub
parent bece741a31
commit 33bb84790c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
debug "$test_url_details"
# Analyze the http code
if [ "${http_code:0:1}" = "0" ] || [ "${http_code:0:1}" = "4" ] || [ "${http_code:0:1}" = "5" ]
if [ "${http_code:0:1}" = "0" ] || [ "${http_code:0:1}" = "4" ] || [ "${http_code:0:1}" = "5" ] || [ "${http_code:0:1}" = "6" ]
then
# If the http code is a 0xx 4xx or 5xx, it's an error code.
curl_error=1
@ -400,7 +400,7 @@ VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
fi
done
if [[ curl_error -ne 0 ]]
if [[ $curl_error -ne 0 ]]
then
warning "$test_url_details"
warning "Page title: $page_title"