From 2a141ab0f45a30ea8a1c8db868623245cb94b8dd Mon Sep 17 00:00:00 2001 From: David Cooper Date: Mon, 24 Jun 2019 14:49:20 -0400 Subject: [PATCH] Fix typo in check of $COLOR In emphasize_stuff_in_headers() there is a check of the $COLOR value, which checks whether $COLOR is 2. It should check whether $COLOR is 2 or higher. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 08f7b1f..a3b9cc5 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2716,7 +2716,7 @@ emphasize_stuff_in_headers(){ -e "s/system-wsgw-management-loopback/${yellow}system-wsgw-management-loopback${off}/g" if "$do_html"; then - if [[ $COLOR -eq 2 ]]; then + if [[ $COLOR -ge 2 ]]; then html_out "$(tm_out "$1" | sed -e 's/\&/\&/g' \ -e 's//\>/g' -e 's/"/\"/g' -e "s/'/\'/g" \ -e "s/\([0-9]\)/${html_brown}\1${html_off}/g" \