diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 9ecac74..de557ef 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 [ -z "${NO_COLOR}" ]; then +if [ -z "${NO_COLOR}" -a -t 1 ]; then enable_color fi