cleanup: remove vendor/bundle/ruby.

Otherwise gem paths will contain references to a now-deleted Ruby.
This commit is contained in:
Mike McQuaid 2018-10-04 15:08:38 +01:00
parent 7f6dc99445
commit 4475d1e0f5
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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