[rubygems/rubygems] Fix bundle.bat re-execution

It does not have ruby code, so we should not prepend `ruby` to the
command the re-execute it.

https://github.com/rubygems/rubygems/commit/e04e00f7bb
This commit is contained in:
David Rodríguez 2024-09-30 12:36:40 +02:00 committed by git
parent 8d359644e7
commit a90861340a

View File

@ -85,7 +85,7 @@ module Bundler
cmd = [*Shellwords.shellsplit(bundler_spec_original_cmd), *ARGV]
else
cmd = [$PROGRAM_NAME, *ARGV]
cmd.unshift(Gem.ruby) unless File.executable?($PROGRAM_NAME)
cmd.unshift(Gem.ruby) unless File.executable?($PROGRAM_NAME) || $PROGRAM_NAME.end_with?(".bat")
end
Bundler.with_original_env do