summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvy Foster <escondida@iff.ink>2019-11-21 18:08:25 -0600
committerLevente Polyak <anthraxx@archlinux.org>2019-11-30 13:25:05 +0100
commit2c611d20bdd04feae6ab32a7ef8947aeb4118604 (patch)
tree358d00f91e1d9e5515c58cf3079028069eeb2fad
parentca4d348c86de0a466d48e6d99ac390729707c317 (diff)
downloaddevtools32-2c611d20bdd04feae6ab32a7ef8947aeb4118604.tar.xz
lib/common.sh: do not use colors when running on a dumb terminal
-rw-r--r--lib/common.sh2
1 files changed, 1 insertions, 1 deletions
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