diff --git a/lib/utils.sh b/lib/utils.sh index 5a9f7eb45..7d3a628a6 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -242,16 +242,7 @@ _omb_util_command_exists _omb_log_note || _omb_util_command_exists _omb_log_info || function _omb_log_info { printf "INFO: %s\n" "$1"; } _omb_util_command_exists _omb_log_die || - function _omb_log_die { - local status=$1 - case $status in - 1) printf 'FATAL: %s\n' "$2" - exit "$status" ;; - *) printf 'FATAL: Syntax error%s\n%s\n' "${FUNCNAME:+ in $FUNCNAME}" "$2" - ((status)) && printf 'FATAL: %s\n' "$status" - return "$status" ;; - esac - } + function _omb_log_die { printf 'FATAL: %s\n' "$2"; exit "$1"; } # # USAGE FOR SEEKING CONFIRMATION