From 2c611d20bdd04feae6ab32a7ef8947aeb4118604 Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Thu, 21 Nov 2019 18:08:25 -0600 Subject: lib/common.sh: do not use colors when running on a dumb terminal --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common.sh b/lib/common.sh index 821f8df..eaa16a4 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -17,7 +17,7 @@ export LANG=C shopt -s extglob # check if messages are to be printed using color -if [[ -t 2 ]]; then +if [[ -t 2 && "$TERM" != dumb ]]; then colorize else # shellcheck disable=2034 -- cgit v1.2.3-70-g09d2