Created
May 10, 2015 06:04
-
-
Save mko-x/19b19c34ea9ac8d63d57 to your computer and use it in GitHub Desktop.
homebrew - check if one or more packages are installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for pkg in macvim ngrep other needed packages; do | |
if brew list -1 | grep -q "^${pkg}\$"; then | |
echo "Package '$pkg' is installed" | |
else | |
echo "Package '$pkg' is not installed" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment