[rubygems/rubygems] add relative path support for bundle exec

https://github.com/rubygems/rubygems/commit/c982085f86
This commit is contained in:
sodacris 2024-12-02 10:50:08 +08:00 committed by git
parent d2c55e33fb
commit e18fb1281a

View File

@ -22,6 +22,7 @@ module Bundler
if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path) if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path)
return kernel_load(bin_path, *args) return kernel_load(bin_path, *args)
end end
bin_path = "./" + bin_path unless File.absolute_path?(bin_path)
kernel_exec(bin_path, *args) kernel_exec(bin_path, *args)
else else
# exec using the given command # exec using the given command