Fixes bug where it would try and test an empty line

Thanks Rob Norman for reporting and helping debug.
Jonathan Hodgson 4 years ago
parent b981f7ab08
commit 298493d691
  1. 2
      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"

Loading…
Cancel
Save