summaryrefslogtreecommitdiff
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-22 11:50:56 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-22 11:50:56 +0000
commit7662937cabfde446cef08d7ef2fd4563681f739f (patch)
treed9c81299f9422306fdaf2e795f496a4b174bb929 /tool/redmine-backporter.rb
parent358d800232295f53fb287e51f666695e199021ad (diff)
* tool/redmine-backporter.rb: should add the value after checking error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/redmine-backporter.rb')
-rwxr-xr-xtool/redmine-backporter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index 3466d64..32ffec8 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -77,9 +77,9 @@ class String
seq << "\e[#{c}m"
end
if back
- c = COLORS[back] + 10
+ c = COLORS[back]
raise "unknown background color #{back}" unless c
- seq << "\e[#{c}m"
+ seq << "\e[#{c + 10}m"
end
if seq.empty?
self