Skip to content

Commit

Permalink
Fix --destdir handling on Windows
Browse files Browse the repository at this point in the history
Driver letters were not accounted for in one place.
  • Loading branch information
deivid-rodriguez committed Nov 4, 2021
1 parent f42c202 commit fbe4246
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rubygems/commands/setup_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ def fake_spec.full_gem_path
end

def install_default_bundler_gem(bin_dir)
specs_dir = Gem.default_specifications_dir
specs_dir = File.join(options[:destdir], specs_dir) unless Gem.win_platform?
specs_dir = prepend_destdir_if_present(Gem.default_specifications_dir)
mkdir_p specs_dir, :mode => 0755

bundler_spec = Dir.chdir("bundler") { Gem::Specification.load("bundler.gemspec") }
Expand Down

0 comments on commit fbe4246

Please sign in to comment.