uninstall: tweak paths array logic.

This commit is contained in:
Mike McQuaid 2020-05-10 19:22:54 +01:00 committed by GitHub
parent e4823ea6fe
commit a3474e8361
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.to_a
maybe_paths = Dir.glob("#{f.etc}/*#{unversioned_name}*")
maybe_paths -= paths if paths.present?
if maybe_paths.present?
puts
opoo <<~EOS