fix: correct issue where help output isnt colorized by default
This commit is contained in:
@@ -142,7 +142,7 @@ fn-help-contents-subcommand() {
|
|||||||
fn-help-fancy-tput() {
|
fn-help-fancy-tput() {
|
||||||
declare desc="A wrapper around 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
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ fn-help-fancy-tput() {
|
|||||||
fn-help-fancy-color() {
|
fn-help-fancy-color() {
|
||||||
declare desc="A wrapper around colors"
|
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
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user