From 3a7e720e8248088703614dc788877db76a36ff46 Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Sat, 31 Jul 2021 15:04:08 -0600 Subject: [PATCH] improve NO_COLOR detection --- usr/local/share/bastille/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 1220fb20..3ef2aeda 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -38,7 +38,7 @@ enable_color() { } # If "NO_COLOR" environment variable is present, disable output colors. -if ! export | grep -q "NO_COLOR"; then +if [ -z "${NO_COLOR}" ]; then enable_color fi