summaryrefslogtreecommitdiff
path: root/functions.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'functions.sh.in')
-rw-r--r--functions.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.sh.in b/functions.sh.in
index 719b354..4bdda5d 100644
--- a/functions.sh.in
+++ b/functions.sh.in
@@ -175,7 +175,7 @@ enable_colors() {
BLUE="\033[1;34m"
}
-if [ -n "$USE_COLORS" ]; then
+if [ -n "$USE_COLORS" ] && [ -t 1 ]; then
enable_colors
else
disable_colors