From e18fb1281ae1b7ba27e13d0dc9f5293db8bf9eb6 Mon Sep 17 00:00:00 2001 From: sodacris Date: Mon, 2 Dec 2024 10:50:08 +0800 Subject: [PATCH] [rubygems/rubygems] add relative path support for `bundle exec` https://github.com/rubygems/rubygems/commit/c982085f86 --- lib/bundler/cli/exec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb index f81cd5d2c4..9428e9db3b 100644 --- a/lib/bundler/cli/exec.rb +++ b/lib/bundler/cli/exec.rb @@ -22,6 +22,7 @@ module Bundler if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path) return kernel_load(bin_path, *args) end + bin_path = "./" + bin_path unless File.absolute_path?(bin_path) kernel_exec(bin_path, *args) else # exec using the given command