[rubygems/rubygems] I don't think we need a conditional shebang

https://github.com/rubygems/rubygems/commit/7ba7073a35
This commit is contained in:
David Rodríguez 2024-09-20 14:21:46 +02:00 committed by git
parent 9bf3210adb
commit 8dd87a66f5

View File

@ -473,11 +473,7 @@ module Spec
@spec.executables = Array(val)
@spec.executables.each do |file|
executable = "#{@spec.bindir}/#{file}"
shebang = if Bundler.current_ruby.jruby?
"#!/usr/bin/env jruby\n"
else
"#!/usr/bin/env ruby\n"
end
shebang = "#!/usr/bin/env ruby\n"
@spec.files << executable
write executable, "#{shebang}require_relative '../lib/#{@name}' ; puts #{Builders.constantize(@name)}"
end