From bcefbefda835a88c1a77b9914944671a04af0dbc Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Oct 2015 00:02:19 +0000 Subject: ignore dump terminal * tool/generic_erb.rb, tool/ifchange: no colorization if tput returned nothing or dump terminal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/ifchange | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/ifchange') diff --git a/tool/ifchange b/tool/ifchange index 4164572b76..7779b28a63 100755 --- a/tool/ifchange +++ b/tool/ifchange @@ -48,7 +48,7 @@ msg_begin= msg_unchanged= msg_updated= msg_reset= if [ "$color" = always -o \( "$color" = auto -a -t 1 \) ]; then msg_begin="[" case "`tput smso 2>/dev/null`" in - "$msg_begin"*m|"") + "$msg_begin"*m) if [ ${TEST_COLORS:+set} ]; then msg_unchanged=`expr ":$TEST_COLORS:" : ".*:pass=\([^:]*\):"` msg_updated=`expr ":$TEST_COLORS:" : ".*:fail=\([^:]*\):"` -- cgit v1.2.3