summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-29 10:37:09 +0100
committerJim Meyering <meyering@redhat.com>2007-10-29 10:37:09 +0100
commitb63b1b4ce2612960f785670481ff3a9fa68c4bd3 (patch)
tree2d38b2136eacf12692152164d4bdc498ebaae9d5 /build-aux
parent0cc7aa3a29af3876d086175d3e7f4b26b6c956cf (diff)
downloadcoreutils-b63b1b4ce2612960f785670481ff3a9fa68c4bd3.tar.xz
Don't try to colorize a dumb terminal.
* build-aux/check.mk (am__tty_colors): Skip colors if $TERM is "dumb". Thanks to Bob Proulx.
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 8e43147a3..862b3e52b 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 && test -n "$$TERM"; then \
+if test -t 1 2>/dev/null && test -n "$$TERM" && test "$$TERM" != dumb; then \
red=''; \
grn=''; \
lgn=''; \