Merge pull request #7541 from miketheman/miketheman/fix-uninstall-paths

cmd/uninstall: fix Array comparison
This commit is contained in:
Mike McQuaid 2020-05-10 19:50:22 +01:00 committed by GitHub
commit 952f8eaac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,8 @@ module Homebrew
end
unversioned_name = f.name.gsub(/@.+$/, "")
maybe_paths = Dir.glob("#{f.etc}/*#{unversioned_name}*") - paths
maybe_paths = Dir.glob("#{f.etc}/*#{unversioned_name}*")
maybe_paths -= paths if paths.present?
if maybe_paths.present?
puts
opoo <<~EOS