From 4472daec2f0e98214cb0337ec9411ed62d700082 Mon Sep 17 00:00:00 2001 From: Nath Tumlin Date: Sat, 11 Mar 2017 16:21:18 -0800 Subject: [PATCH] Updated highlight_installed to use Cask.installed? --- Library/Homebrew/cask/lib/hbc/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index fd786e318f..32db3c2614 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -37,7 +37,7 @@ def odebug(title, *sput) end def highlight_installed(token) - if (Hbc.caskroom/token).directory? + if Hbc::Cask.new(token).installed? token = pretty_installed token end token