lib/common.sh: do not use colors when running on a dumb terminal
This commit is contained in:
parent
ca4d348c86
commit
2c611d20bd
|
@ -17,7 +17,7 @@ export LANG=C
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
# check if messages are to be printed using color
|
# check if messages are to be printed using color
|
||||||
if [[ -t 2 ]]; then
|
if [[ -t 2 && "$TERM" != dumb ]]; then
|
||||||
colorize
|
colorize
|
||||||
else
|
else
|
||||||
# shellcheck disable=2034
|
# shellcheck disable=2034
|
||||||
|
|
Loading…
Reference in New Issue