From 8c116f9507539f189aaefcd32f59c1d979b4a46e Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 11 Apr 2018 16:53:25 +0200 Subject: [PATCH] Fix Cask search not showing remote matches. --- Library/Homebrew/cask/lib/hbc/cli/search.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb index d56d0c81fe..d7fac8cd72 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/search.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb @@ -30,6 +30,7 @@ module Hbc opoo "Error searching on GitHub: #{error}\n" [] end + matches.map do |match| tap = Tap.fetch(match["repository"]["full_name"]) next if tap.installed? @@ -65,7 +66,7 @@ module Hbc return end - if !exact_match && partial_matches.empty? + if !exact_match && partial_matches.empty? && remote_matches.empty? puts "No Cask found for \"#{search_term}\"." return end