diff options
| author | sodacris <wjxa20152015@gmail.com> | 2024-12-02 10:50:08 +0800 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-12-04 08:34:57 +0000 |
| commit | e18fb1281ae1b7ba27e13d0dc9f5293db8bf9eb6 (patch) | |
| tree | 99ce3b90c7af3a59e7364ee32fa84cdad465da41 | |
| parent | d2c55e33fb4cf22859ef5c70fe532342d7bb2c62 (diff) | |
[rubygems/rubygems] add relative path support for `bundle exec`
https://github.com/rubygems/rubygems/commit/c982085f86
| -rw-r--r-- | lib/bundler/cli/exec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
