From 28d65247b0a21cb8dfe2a4db896bee48dd3ff583 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Mon, 10 Feb 2020 13:51:08 -0500 Subject: [PATCH] Fix Shellcheck SC2197 This PR fixes one Shellcheck issue: In testssl_3.1dev_20200208.sh line 2395: HEADERVALUE="$(fgrep -Fai "$key:" $HEADERFILE | head -1)" ^-- SC2197: fgrep is non-standard and deprecated. Use grep -F instead. The man page for grep states that fgrep is the same a grep -F and that grep is deprecated. So, fgrep -F is just redundant. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index b72e7bf..973ad9a 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2392,7 +2392,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")"