Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 6775b54

Browse files
committed
Fix uppercase function on Mac OS
1 parent 0ffe928 commit 6775b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base_functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
check_error() {
66
local msg="$*"
7-
local umsg==${msg^^} # Upper-case everything to ensure 'error' is detected as well as 'ERROR'
7+
local umsg==`echo $msg | tr '[a-z]' '[A-Z]'` # Upper-case everything to ensure 'error' is detected as well as 'ERROR'
88
if [ "${umsg//ERROR/}" != "${umsg}" ]; then
99
if [ -n "${ERROR_FILE:-}" ] && [ -f "$ERROR_FILE" ] && ! grep "$msg" $ERROR_FILE ; then
1010
local tmp=$(mktemp /tmp/error-XXXX)

0 commit comments

Comments
 (0)