From 44d75f56d2e47c7460f6ca6b4ad7fe18ccb725d6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 11 Oct 2018 14:20:03 -0400 Subject: [PATCH] fix: correct issue where help output isnt colorized by default --- help-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help-functions b/help-functions index d5c5be6..51ae35b 100755 --- a/help-functions +++ b/help-functions @@ -142,7 +142,7 @@ fn-help-contents-subcommand() { fn-help-fancy-tput() { declare desc="A wrapper around tput" - if [[ -z "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then + if [[ -n "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then return fi @@ -152,7 +152,7 @@ fn-help-fancy-tput() { fn-help-fancy-color() { declare desc="A wrapper around colors" - if [[ -z "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then + if [[ -n "$DOKKU_NO_COLOR" ]] || [[ "$TERM" = "unknown" ]] || [[ "$TERM" == "dumb" ]]; then return fi