FIX #697 in 2.9dev (bash hiccup @ tolower)
This commit is contained in:
parent
b1ce11d76e
commit
bfb0f4bc7d
10
testssl.sh
10
testssl.sh
|
@ -1142,12 +1142,12 @@ html_footer() {
|
||||||
|
|
||||||
###### START helper function definitions ######
|
###### START helper function definitions ######
|
||||||
|
|
||||||
if [[ $(uname) == "Linux" ]] ; then
|
toupper() { echo -n "${1^^}" ; }
|
||||||
toupper() { echo -n "${1^^}" ; }
|
tolower() { echo -n "${1,,}" ; }
|
||||||
tolower() { echo -n "${1,,}" ; }
|
if ! toupper aaa 2>/dev/null; then
|
||||||
else
|
# 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"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debugme() {
|
debugme() {
|
||||||
|
|
Loading…
Reference in New Issue