summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-29 09:47:52 +0100
committerJim Meyering <meyering@redhat.com>2007-10-29 09:47:52 +0100
commit89157ad2075374f808773317d15b854edcc85cd8 (patch)
tree8ecff29fffff3cef11699ec6f94851b92ecccb5c /build-aux
parent973d42b90de3c4af705c99536cd1f0ffccd26791 (diff)
downloadcoreutils-89157ad2075374f808773317d15b854edcc85cd8.tar.xz
If $TERM is empty, don't use colors. This helps the buildbot,
since it produces its result in an environment with a tty, but we don't want color codes in that case. * build-aux/check.mk (am__tty_colors): Test for nonempty $TERM.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/check.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/check.mk b/build-aux/check.mk
index c4dfd35e1..8f0d1c097 100644
--- a/build-aux/check.mk
+++ b/build-aux/check.mk
@@ -60,7 +60,7 @@ END { \
# this fails; a conservative approach. Of course do not redirect
# stdout here, just stderr...
am__tty_colors = \
-if test -t 1 2>/dev/null; then \
+if test -t 1 2>/dev/null && test -n "$$TERM"; then \
red=''; \
grn=''; \
lgn=''; \