mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-11 03:00:57 +01:00
FIX #697 in 2.8 (bash hiccup @ tolower)
This commit is contained in:
parent
3fba2564df
commit
1345a088ef
10
testssl.sh
10
testssl.sh
@ -519,12 +519,12 @@ strip_trailing_space() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if [[ $(uname) == "Linux" ]] ; then
|
|
||||||
toupper() { echo -n "${1^^}" ; }
|
toupper() { echo -n "${1^^}" ; }
|
||||||
tolower() { echo -n "${1,,}" ; }
|
tolower() { echo -n "${1,,}" ; }
|
||||||
else
|
if ! toupper aaa 2>/dev/null; then
|
||||||
toupper() { echo -n "$1" | tr 'a-z' 'A-Z'; }
|
# older bash can't do this (MacOS X), even SLES 11, see #697
|
||||||
tolower() { echo -n "$1" | tr 'A-Z' 'a-z' ; }
|
toupper() { tr 'a-z' 'A-Z' <<< "$1"; }
|
||||||
|
tolower() { tr 'A-Z' 'a-z' <<< "$1"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
is_number() {
|
is_number() {
|
||||||
@ -9205,4 +9205,4 @@ fi
|
|||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
|
||||||
# $Id: testssl.sh,v 1.577 2017/04/05 12:56:17 dirkw Exp $
|
# $Id: testssl.sh,v 1.578 2017/04/05 15:34:04 dirkw Exp $
|
||||||
|
Loading…
Reference in New Issue
Block a user