Merge pull request #1500 from dcooper16/shellcheck_SC2197

Fix Shellcheck SC2197
This commit is contained in:
Dirk Wetter 2020-02-10 20:45:16 +01:00 committed by GitHub
commit b0cce84a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")"