Skip to content

Commit d695c8d

Browse files
No need to set anything at all unless standalone is given
1 parent 083aa40 commit d695c8d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bundler/lib/bundler/cli/install.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ def normalize_groups
147147
def normalize_settings
148148
Bundler.settings.set_command_option :path, nil if options[:system]
149149
Bundler.settings.set_command_option_if_given :path, options[:path]
150-
Bundler.settings.temporary(:path_relative_to_cwd => false) do
151-
Bundler.settings.set_command_option :path, "bundle" if options["standalone"] && Bundler.settings[:path].nil?
150+
151+
if options["standalone"] && Bundler.settings[:path].nil?
152+
Bundler.settings.temporary(:path_relative_to_cwd => false) do
153+
Bundler.settings.set_command_option :path, "bundle"
154+
end
152155
end
153156

154157
bin_option = options["binstubs"]

0 commit comments

Comments
 (0)