mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +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:
		@@ -2392,7 +2392,7 @@ match_httpheader_key() {
 | 
				
			|||||||
          pr_svrty_medium " ${nr}x"
 | 
					          pr_svrty_medium " ${nr}x"
 | 
				
			||||||
          outln " -- checking first one only"
 | 
					          outln " -- checking first one only"
 | 
				
			||||||
          out "$spaces"
 | 
					          out "$spaces"
 | 
				
			||||||
          HEADERVALUE="$(fgrep -Fai "$key:" $HEADERFILE | head -1)"
 | 
					          HEADERVALUE="$(grep -Fai "$key:" $HEADERFILE | head -1)"
 | 
				
			||||||
          HEADERVALUE="${HEADERVALUE#*:}"
 | 
					          HEADERVALUE="${HEADERVALUE#*:}"
 | 
				
			||||||
          HEADERVALUE="$(strip_lf "$HEADERVALUE")"
 | 
					          HEADERVALUE="$(strip_lf "$HEADERVALUE")"
 | 
				
			||||||
          HEADERVALUE="$(strip_leading_space "$HEADERVALUE")"
 | 
					          HEADERVALUE="$(strip_leading_space "$HEADERVALUE")"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user