diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 08:56:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 08:56:30 +0000 |
commit | 873982877cd463b15212ca51e545eb0b37cc1828 (patch) | |
tree | 39344687b9e6bf8796e558a79a3fcd42382a0293 /tool | |
parent | e2ac7b3d8b58816813ad1d05ed86fec8c80973d6 (diff) | |
download | ruby-873982877cd463b15212ca51e545eb0b37cc1828.tar.gz |
generic_erb.rb: ignore error
* tool/generic_erb.rb: ignore error that tput is not found.
[ruby-core:71143] [Bug #11611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r-- | tool/generic_erb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/generic_erb.rb b/tool/generic_erb.rb index 6d97d21fb7..149de3b1b9 100644 --- a/tool/generic_erb.rb +++ b/tool/generic_erb.rb @@ -24,7 +24,7 @@ end unchanged = "unchanged" updated = "updated" if color or (color == nil && STDOUT.tty?) - if /\A(\e\[).*m\z/ =~ IO.popen("tput smso", "r", &:read) + if (/\A(\e\[).*m\z/ =~ IO.popen("tput smso", "r", err: IO::NULL, &:read) rescue nil) beg = $1 colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:\n]*)/)] : {} reset = "#{beg}m" |