Skip to content

Commit

Permalink
Merge pull request #533 from cqexbesd/colour
Browse files Browse the repository at this point in the history
Enable colour only when writing to a tty
  • Loading branch information
cedwards authored Jul 24, 2022
2 parents 6393340 + a0b7bc5 commit c50e99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ enable_color() {
}

# If "NO_COLOR" environment variable is present, disable output colors.
if [ -z "${NO_COLOR}" ]; then
if [ -z "${NO_COLOR}" -a -t 1 ]; then
enable_color
fi

Expand Down

0 comments on commit c50e99b

Please sign in to comment.