summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIvy Foster <escondida@iff.ink>2019-11-22 01:08:25 +0100
committerLevente Polyak <anthraxx@archlinux.org>2019-11-30 13:25:05 +0100
commit2c611d20bdd04feae6ab32a7ef8947aeb4118604 (patch)
tree358d00f91e1d9e5515c58cf3079028069eeb2fad /lib
parentca4d348c86de0a466d48e6d99ac390729707c317 (diff)
downloaddevtools-2c611d20bdd04feae6ab32a7ef8947aeb4118604.tar.gz
devtools-2c611d20bdd04feae6ab32a7ef8947aeb4118604.tar.xz
lib/common.sh: do not use colors when running on a dumb terminal
Diffstat (limited to 'lib')
-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