From a90861340ae6799ae9dcd75a14b451cae433cefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 30 Sep 2024 12:36:40 +0200 Subject: [PATCH] [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 --- lib/bundler/self_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/self_manager.rb b/lib/bundler/self_manager.rb index 6ab41b99f7..21516713d4 100644 --- a/lib/bundler/self_manager.rb +++ b/lib/bundler/self_manager.rb @@ -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