Skip to content

Commit 150e696

Browse files
committed
[Setup] Ensure bundler_spec.files does not contain bundler/ prefix
1 parent 7694518 commit 150e696

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
@@ -355,7 +355,7 @@ def install_default_bundler_gem
355355
mkdir_p Gem::Specification.default_specifications_dir
356356

357357
bundler_spec = Gem::Specification.load("bundler/bundler.gemspec")
358-
bundler_spec.files = Dir["bundler/{*.md,{lib,exe,man}/**/*}"]
358+
bundler_spec.files = Dir.chdir("bundler") { Dir["{*.md,{lib,exe,man}/**/*}"] }
359359
bundler_spec.executables -= %w[bundler bundle_ruby]
360360
Dir.entries(Gem::Specification.default_specifications_dir).
361361
select {|gs| gs.start_with?("bundler-") }.

0 commit comments

Comments
 (0)