From 298493d6916f849eb0b675a0e98ba5ce2c4cd757 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Fri, 9 Apr 2021 11:45:05 +0100 Subject: [PATCH] Fixes bug where it would try and test an empty line Thanks Rob Norman for reporting and helping debug. --- bin/.bin/webtest/analyse-headers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/.bin/webtest/analyse-headers b/bin/.bin/webtest/analyse-headers index f099dfcc..a94853a2 100755 --- a/bin/.bin/webtest/analyse-headers +++ b/bin/.bin/webtest/analyse-headers @@ -533,7 +533,7 @@ while read -r line; do fi done<<<"$(echo "$headers" | sed '1d')" # We don't want the initial http banner -echo "$missingHeaders" | while read -r line; do +echo -n "$missingHeaders" | while read -r line; do echo -e "${RED}$line${NC}" functionName="test_$line" "$functionName" >> "$tmpfile"