Fix Cask search not showing remote matches.

This commit is contained in:
Markus Reiter 2018-04-11 16:53:25 +02:00
parent df19f7103c
commit 8c116f9507

View File

@ -30,6 +30,7 @@ module Hbc
opoo "Error searching on GitHub: #{error}\n" opoo "Error searching on GitHub: #{error}\n"
[] []
end end
matches.map do |match| matches.map do |match|
tap = Tap.fetch(match["repository"]["full_name"]) tap = Tap.fetch(match["repository"]["full_name"])
next if tap.installed? next if tap.installed?
@ -65,7 +66,7 @@ module Hbc
return return
end end
if !exact_match && partial_matches.empty? if !exact_match && partial_matches.empty? && remote_matches.empty?
puts "No Cask found for \"#{search_term}\"." puts "No Cask found for \"#{search_term}\"."
return return
end end