Fixes bug where it would try and test an empty line

Thanks Rob Norman for reporting and helping debug.
master
Jonathan Hodgson 4 years ago
parent ed0817f6b5
commit b943a3e03b
  1. 2
      bin/.bin/webtest/analyse-headers

@ -533,7 +533,7 @@ while read -r line; do
fi fi
done<<<"$(echo "$headers" | sed '1d')" # We don't want the initial http banner 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}" echo -e "${RED}$line${NC}"
functionName="test_$line" functionName="test_$line"
"$functionName" >> "$tmpfile" "$functionName" >> "$tmpfile"

Loading…
Cancel
Save