From 5c8bbb6fe1d061b4d54c78461d508bca985dc215 Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Mon, 19 Nov 2018 03:38:55 +0000 Subject: [PATCH] config/functions: allow null invocatin of print_color Signed-off-by: Ian Leonard --- config/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/functions b/config/functions index 4ce3deddc8..e4662e687a 100644 --- a/config/functions +++ b/config/functions @@ -38,6 +38,8 @@ listremoveitem() { print_color() { local clr_name="$1" clr_text="$2" clr_actual + [ -z "${clr_name}" ] && return 0 + if [ "$DISABLE_COLORS" = "yes" ]; then [ $# -eq 2 ] && echo -en "${clr_text}" return 0