From 233fcc30910c84ddd490ea41644f881c1b8fdba1 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sun, 25 Jul 2021 21:46:18 -0700 Subject: [PATCH] lib/log: handle undefined variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expressly deal with if $echo_yellow hasn’t been defined --- lib/log.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log.bash b/lib/log.bash index 401fa3fa..32626d76 100755 --- a/lib/log.bash +++ b/lib/log.bash @@ -45,7 +45,7 @@ function _log_warning() group 'log' [[ "${BASH_IT_LOG_LEVEL:-1}" -ge $BASH_IT_LOG_LEVEL_WARNING ]] || return 0 - _log_general "${echo_yellow}" " WARN: " "$1" + _log_general "${echo_yellow:-}" " WARN: " "$1" } function _log_error()