diff --git a/library/packaging/homebrew b/library/packaging/homebrew index 8801a4e6c4..ab1362acf1 100644 --- a/library/packaging/homebrew +++ b/library/packaging/homebrew @@ -71,7 +71,7 @@ def query_package(module, brew_path, name, state="present"): """ Returns whether a package is installed or not. """ if state == "present": - rc, out, err = module.run_command("%s list -m1 | grep -q '^%s$'" % (brew_path, name)) + rc, out, err = module.run_command("%s list %s" % (brew_path, name)) if rc == 0: return True