From b77ff342ccb1c57a4b6c618e4ddf6bf1fec23a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 9 Oct 2024 17:19:55 +0200 Subject: [PATCH] [rubygems/rubygems] Revert "Fix `bundle.bat` re-execution" This reverts commit https://github.com/rubygems/rubygems/commit/e04e00f7bb5b. https://github.com/rubygems/rubygems/commit/554ece1587 --- 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 21516713d4..6ab41b99f7 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) || $PROGRAM_NAME.end_with?(".bat") + cmd.unshift(Gem.ruby) unless File.executable?($PROGRAM_NAME) end Bundler.with_original_env do