From 3b71a2c317798881e61205bae2225e014e156c8b Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Thu, 9 Nov 2023 13:57:34 -0500 Subject: [PATCH] Ensure 404s are actually 404s, not just non-200 --- scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index ee6e1b4..c848d25 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -40,7 +40,7 @@ for URL in "${URLS[@]}"; do -s \ "http://localhost:8888/proxyUrl?url=$URL") echo -e "\t${STATUS_CODE}" - if [ "${STATUS_CODE}" -eq 200 ]; then + if [ ! "${STATUS_CODE}" -eq 404 ]; then EXIT_CODE=1 fi done