mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-30 21:35:26 +01:00 
			
		
		
		
	mute the error message using bash3, see #697 (2.9dev)
This commit is contained in:
		| @@ -922,12 +922,13 @@ html_footer() { | |||||||
|  |  | ||||||
| ###### START helper function definitions ###### | ###### START helper function definitions ###### | ||||||
|  |  | ||||||
| toupper() { echo -n "${1^^}" ;  } | if [[ "$BASH_VERSINFO" == 3 ]]; then | ||||||
| tolower() { echo -n "${1,,}" ;  } |      # older bash can't do this (MacOS X), even SLES 11, see #697 and also | ||||||
| if ! toupper aaa 2>&1 >/dev/null; then |  | ||||||
|      # Older bash can't do this (MacOS X), even SLES 11, see #697 |  | ||||||
|      toupper() { tr 'a-z' 'A-Z' <<< "$1"; } |      toupper() { tr 'a-z' 'A-Z' <<< "$1"; } | ||||||
|      tolower() { tr 'A-Z' 'a-z' <<< "$1"; } |      tolower() { tr 'A-Z' 'a-z' <<< "$1"; } | ||||||
|  | else | ||||||
|  |      toupper() { echo -n "${1^^}"; } | ||||||
|  |      tolower() { echo -n "${1,,}"; } | ||||||
| fi | fi | ||||||
|  |  | ||||||
| debugme() { | debugme() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk
					Dirk