summaryrefslogtreecommitdiff
path: root/tool/ifchange
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 00:02:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 00:02:19 +0000
commite71223338716ec7e1e16bfc97ed035eee516af15 (patch)
tree9679ec1d3937783c2f3767414cf7ef6775d946e2 /tool/ifchange
parent8db48b11c62be04aff42ebf049dec16c707e27b7 (diff)
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
Diffstat (limited to 'tool/ifchange')
-rwxr-xr-xtool/ifchange2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ifchange b/tool/ifchange
index 4164572..7779b28 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=\([^:]*\):"`