diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index ef00104f92..fd786e318f 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -37,8 +37,7 @@ def odebug(title, *sput) end def highlight_installed(token) - cask = Hbc.load(token) - if cask.installed? + if (Hbc.caskroom/token).directory? token = pretty_installed token end token