From 6775b543d47149956b1ef282277564d40787fac0 Mon Sep 17 00:00:00 2001 From: heiko-braun Date: Thu, 27 Feb 2020 16:12:18 +0100 Subject: [PATCH] Fix uppercase function on Mac OS --- base_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_functions.sh b/base_functions.sh index d33a784..272c057 100644 --- a/base_functions.sh +++ b/base_functions.sh @@ -4,7 +4,7 @@ check_error() { local msg="$*" - local umsg==${msg^^} # Upper-case everything to ensure 'error' is detected as well as 'ERROR' + local umsg==`echo $msg | tr '[a-z]' '[A-Z]'` # Upper-case everything to ensure 'error' is detected as well as 'ERROR' if [ "${umsg//ERROR/}" != "${umsg}" ]; then if [ -n "${ERROR_FILE:-}" ] && [ -f "$ERROR_FILE" ] && ! grep "$msg" $ERROR_FILE ; then local tmp=$(mktemp /tmp/error-XXXX)