[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:
parent
8d359644e7
commit
a90861340a
@ -85,7 +85,7 @@ module Bundler
|
|||||||
cmd = [*Shellwords.shellsplit(bundler_spec_original_cmd), *ARGV]
|
cmd = [*Shellwords.shellsplit(bundler_spec_original_cmd), *ARGV]
|
||||||
else
|
else
|
||||||
cmd = [$PROGRAM_NAME, *ARGV]
|
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
|
end
|
||||||
|
|
||||||
Bundler.with_original_env do
|
Bundler.with_original_env do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user