summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 14:33:10 (GMT)
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 14:33:10 (GMT)
commit35f2b71ce979e6d65f5c96d8598cb493632604b9 (patch)
treea8cce74058aea88804ea940f27bf831eedee5c6a /template
parent5e9cd5208eb0cb6c4c9f872d6db5c94bac955884 (diff)
Fix template/fake.rb.in if ENV["RUBYOPT"] is nil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 27df02e..5788af1 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -44,7 +44,7 @@ fake = File.join(top_srcdir, "tool/fake.rb")
eval(File.binread(fake), nil, fake)
ropt = "-r#{__FILE__}"
["RUBYOPT"].each do |flag|
- opt = ENV[flag].b
- opt = opt ? ([ropt] | opt.split).join(" ") : ropt
+ opt = ENV[flag]
+ opt = opt ? ([ropt] | opt.b.split).join(" ") : ropt
ENV[flag] = opt
end