From 9a7d1e8e56ef20903e2a39da5d627a5a60c2cbf2 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 25 Jan 2022 14:10:33 +0300 Subject: [PATCH] blockcheck: print redirection http code --- blockcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockcheck.sh b/blockcheck.sh index e5bc791..d5df72e 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -302,7 +302,7 @@ curl_test_http() loc=$(hdrfile_location "$HDRTEMP") echo "$loc" | grep -qE "^https?://.*$2(/|$)" || echo "$loc" | grep -vqE '^https?://' || { - echo suspicious redirection to : $loc + echo suspicious redirection $code to : $loc rm -f "$HDRTEMP" return 254 }