From ffcf07f6b17d7125853afc492f21e5fa8b470863 Mon Sep 17 00:00:00 2001 From: Geert Hendrickx Date: Sun, 18 Sep 2022 18:54:16 +0200 Subject: [PATCH] Fix grep 3.8 warnings on fgrep. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 6b7f36e..f3505d0 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2405,7 +2405,7 @@ match_httpheader_key() { pr_svrty_medium " ${nr}x" outln " -- checking first one only" out "$spaces" - HEADERVALUE="$(fgrep -Fai "$key:" $HEADERFILE | head -1)" + HEADERVALUE="$(grep -Fai "$key:" $HEADERFILE | head -1)" HEADERVALUE="${HEADERVALUE#*:}" HEADERVALUE="$(strip_lf "$HEADERVALUE")" HEADERVALUE="$(strip_leading_space "$HEADERVALUE")"