mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 07:26:56 +00:00
Merge pull request #5040 from MikeMcQuaid/cleanup-vendor-bundle
cleanup: remove vendor/bundle/ruby.
This commit is contained in:
@@ -320,10 +320,12 @@ module Homebrew
|
||||
return unless Dir.glob(portable_ruby_glob).empty?
|
||||
return unless portable_ruby_path.exist?
|
||||
|
||||
bundler_path = vendor_path/"bundle/ruby"
|
||||
if dry_run?
|
||||
puts "Would remove: #{bundler_path} (#{bundler_path.abv})"
|
||||
puts "Would remove: #{portable_ruby_path} (#{portable_ruby_path.abv})"
|
||||
else
|
||||
FileUtils.rm_rf portable_ruby_path
|
||||
FileUtils.rm_rf [bundler_path, portable_ruby_path]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user