1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

homebrew_cask: Fixes #38772

This commit is contained in:
Daniel Jaouen 2018-09-29 20:30:47 -04:00 committed by Brian Coca
parent c5d5d08b6b
commit 404b7140b6

View file

@ -449,10 +449,10 @@ class HomebrewCask(object):
]
rc, out, err = self.module.run_command(cmd)
if re.search(r'Error: Cask .* is not installed.', err):
return False
else:
if rc == 0:
return True
else:
return False
# /checks ------------------------------------------------------ }}}
# commands ----------------------------------------------------- {{{