diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index faf9557e76..a9afe5ad7d 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -122,7 +122,7 @@ module Homebrew matches.map do |match| filename = File.basename(match["path"], ".rb") tap = Tap.fetch(match["repository"]["full_name"]) - next if tap.installed? && !(tap.user == "Homebrew" && tap.repo.start_with?("cask")) + next if tap.installed? && !tap.name.start_with?("homebrew/cask") "#{tap.name}/#{filename}" end.compact end