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

Commit

Permalink
Fix uppercase function on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko-braun committed Feb 28, 2020
1 parent 0ffe928 commit 6775b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6775b54

Please sign in to comment.