diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-07-24 21:58:13 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-07-30 04:24:24 +0900 |
commit | b515fdcc32a6a7d484c73f090fa2a58a8662e6ca (patch) | |
tree | a3c9944de6224fb33df63b2d022f32f0f15d3eb5 /lib/bundler/cli | |
parent | f78e46d404f156cc05066c4d895fd6bdef4aec7c (diff) |
[rubygems/rubygems] No need to set anything at all unless standalone is given
https://github.com/rubygems/rubygems/commit/d695c8da3e
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r-- | lib/bundler/cli/install.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index e9b85f7f6f..1601fc6a98 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -147,8 +147,11 @@ module Bundler def normalize_settings Bundler.settings.set_command_option :path, nil if options[:system] Bundler.settings.set_command_option_if_given :path, options[:path] - Bundler.settings.temporary(:path_relative_to_cwd => false) do - Bundler.settings.set_command_option :path, "bundle" if options["standalone"] && Bundler.settings[:path].nil? + + if options["standalone"] && Bundler.settings[:path].nil? + Bundler.settings.temporary(:path_relative_to_cwd => false) do + Bundler.settings.set_command_option :path, "bundle" + end end bin_option = options["binstubs"] |