lib/common.sh: do not use colors when running on a dumb terminal

This commit is contained in:
Ivy Foster 2019-11-21 18:08:25 -06:00 committed by Levente Polyak
parent ca4d348c86
commit 2c611d20bd
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 1 additions and 1 deletions

View File

@ -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