Skip to content

Commit 7694518

Browse files
committed
[Setup] Ensure the default specs dir exists when installing bundler
1 parent 5d5f0c3 commit 7694518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubygems/commands/setup_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def fake_spec.full_gem_path
352352
def install_default_bundler_gem
353353
return unless Gem::USE_BUNDLER_FOR_GEMDEPS
354354

355-
return unless File.directory?(Gem::Specification.default_specifications_dir)
355+
mkdir_p Gem::Specification.default_specifications_dir
356356

357357
bundler_spec = Gem::Specification.load("bundler/bundler.gemspec")
358358
bundler_spec.files = Dir["bundler/{*.md,{lib,exe,man}/**/*}"]

0 commit comments

Comments
 (0)