Last active
December 12, 2015 04:49
-
-
Save hobodave/4717378 to your computer and use it in GitHub Desktop.
This file contains 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
installed_pkgs=$(/usr/local/bin/package list) | |
for pkg in gmp; do | |
if echo "${installed_pkgs}" | grep -q -c "^${pkg}"; then | |
echo "Error: Missing required package: ${pkg}." | |
echo "Try: 'epkg -i ${pkg}' and rebuild." | |
exit 1 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment