Merge pull request #7565 from sl4m/fixes-brew-uninstall

Fixes uninstall if formula is unavailable
This commit is contained in:
Mike McQuaid 2020-05-14 08:45:50 +01:00 committed by GitHub
commit e5a6a11e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,8 @@ module Homebrew
puts "Run `brew uninstall --force #{keg.name}` to remove all versions."
end
next unless f
paths = f.pkgetc.find.map(&:to_s) if f.pkgetc.exist?
if paths.present?
puts