mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
[rubygems/rubygems] TruffleRuby uses a bash prelude in default launchers
e119f4208a
This commit is contained in:
parent
d5c3680a0c
commit
bbfd735b88
1 changed files with 2 additions and 1 deletions
|
@ -226,7 +226,8 @@ class Gem::Installer
|
||||||
line = io.gets
|
line = io.gets
|
||||||
shebang = /^#!.*ruby/
|
shebang = /^#!.*ruby/
|
||||||
|
|
||||||
if load_relative_enabled?
|
# TruffleRuby uses a bash prelude in default launchers
|
||||||
|
if load_relative_enabled? || RUBY_ENGINE == "truffleruby"
|
||||||
until line.nil? || line =~ shebang do
|
until line.nil? || line =~ shebang do
|
||||||
line = io.gets
|
line = io.gets
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue