Commit e65307d6 authored by Natanael Copa's avatar Natanael Copa

functions: only enable colors on terminals

We dont want wolors enabled when output is a file or a pipe
parent 62d0c7b8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment