use brew list --formula (#468)

This commit is contained in:
ChrisLi 2021-01-15 04:07:00 -05:00 committed by GitHub
parent f033da0efa
commit 41071d7c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class Builder:
package_checker = 'LANG=C dpkg -s {} 2>&1 | grep Status | grep "ok installed" 1>/dev/null 2>&1'
elif distname == 'Darwin':
package_installer = 'brew install {}'
package_checker = 'brew list -1 | grep -q {}'
package_checker = 'brew ls --version {} > /dev/null'
packages_to_install = []
for package in packages_to_have: