Show remote Casks, even if available locally … for now.

This commit is contained in:
Markus Reiter 2018-06-02 21:00:48 +02:00
parent dd8370a9fa
commit cff42a8a8c

View File

@ -30,7 +30,7 @@ module Homebrew
tap = Tap.fetch(match["repository"]["full_name"])
full_name = "#{tap.name}/#{name}"
if tap.installed?
if tap.installed? && !match["path"].start_with?("Casks/")
[formulae, casks]
elsif match["path"].start_with?("Casks/")
[formulae, [*casks, full_name].sort]