Skip to content

Instantly share code, notes, and snippets.

@hobodave
Last active December 12, 2015 04:49
Show Gist options
  • Save hobodave/4717378 to your computer and use it in GitHub Desktop.
Save hobodave/4717378 to your computer and use it in GitHub Desktop.
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