From 33bb84790c569ddecf3866acb03245dc5f8531e1 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 30 Nov 2020 14:24:57 +0100 Subject: [PATCH] Fix curl_error check --- sub_scripts/testing_process.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sub_scripts/testing_process.sh b/sub_scripts/testing_process.sh index 0bc29fb..7530196 100644 --- a/sub_scripts/testing_process.sh +++ b/sub_scripts/testing_process.sh @@ -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"