From a3474e8361c01910b9b05d6c2abc7ae25d6da52f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 10 May 2020 19:22:54 +0100 Subject: [PATCH] uninstall: tweak paths array logic. --- Library/Homebrew/cmd/uninstall.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index e679377d40..a27c45eaf5 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -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