Skip to content

Commit

Permalink
fix: correct issue where help output isnt colorized by default
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Oct 11, 2018
1 parent 3fc6322 commit 44d75f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help-functions
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 44d75f5

Please sign in to comment.