homebrew_cask: Fixes #38772
This commit is contained in:
parent
c5d5d08b6b
commit
404b7140b6
1 changed files with 3 additions and 3 deletions
|
@ -449,10 +449,10 @@ class HomebrewCask(object):
|
||||||
]
|
]
|
||||||
rc, out, err = self.module.run_command(cmd)
|
rc, out, err = self.module.run_command(cmd)
|
||||||
|
|
||||||
if re.search(r'Error: Cask .* is not installed.', err):
|
if rc == 0:
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
# /checks ------------------------------------------------------ }}}
|
# /checks ------------------------------------------------------ }}}
|
||||||
|
|
||||||
# commands ----------------------------------------------------- {{{
|
# commands ----------------------------------------------------- {{{
|
||||||
|
|
Loading…
Reference in a new issue