From 6b314ee11f358b1940906dd0b41432a858b27c6c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Thu, 19 Oct 2017 14:40:47 +0200 Subject: [PATCH] Do not test ressources if the page itself returns an error --- sub_scripts/testing_process.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sub_scripts/testing_process.sh b/sub_scripts/testing_process.sh index 99ddb32..cea8aac 100644 --- a/sub_scripts/testing_process.sh +++ b/sub_scripts/testing_process.sh @@ -273,7 +273,10 @@ CHECK_URL () { echo -e "\e[0m" # Test http status of ressources files - CHECK_URL_RESSOURCES + if [[ $curl_error -eq 0 ]] + then + CHECK_URL_RESSOURCES + fi fi fi