mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
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.
This commit is contained in:
parent
6da6335e5b
commit
28d65247b0
@ -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")"
|
||||
|
Loading…
Reference in New Issue
Block a user