Speed up checking if cask is installed in search
Switched from loading a cask and checking the installed? variable to checking for it in the caskroom directory like search does outside cask
This commit is contained in:
parent
d305784c37
commit
f93fd970d5
@ -37,8 +37,7 @@ def odebug(title, *sput)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def highlight_installed(token)
|
def highlight_installed(token)
|
||||||
cask = Hbc.load(token)
|
if (Hbc.caskroom/token).directory?
|
||||||
if cask.installed?
|
|
||||||
token = pretty_installed token
|
token = pretty_installed token
|
||||||
end
|
end
|
||||||
token
|
token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user