summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-18 23:29:40 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-18 23:29:40 (GMT)
commitc8ab2634c69749a0ef12631559c5565ce53dfe92 (patch)
tree00cca6f55f075202a775db08ca1c74dc69bdf343 /tool
parent524e4cc9824b9c8ff09950fdd9b35c92fb57a8df (diff)
update-deps: fix runtime error [ci skip]
* tool/update-deps (init_global): environment strings are frozen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/update-deps2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/update-deps b/tool/update-deps
index 7c4d5d3..f26cff2 100755
--- a/tool/update-deps
+++ b/tool/update-deps
@@ -239,7 +239,7 @@ DEPENDENCIES_SECTION_END_MARK = "\# AUTOGENERATED DEPENDENCIES END\n"
def init_global
ENV['LC_ALL'] = 'C'
- if mkflag = ENV['GNUMAKEFLAGS'] and mkflag.sub!(/(\A|\s+)-j\d*(?=\s+|\z)/, '')
+ if mkflag0 = ENV['GNUMAKEFLAGS'] and (mkflag = mkflag0.sub(/(\A|\s+)-j\d*(?=\s+|\z)/, '')) != mkflag0
mkflag.strip!
ENV['GNUMAKEFLAGS'] = mkflag
end