Add check for curl and jq.

This commit is contained in:
Logan Gorence 2021-12-22 23:58:59 +00:00
parent 3b36456a5d
commit 7b9b7b9b3b
No known key found for this signature in database
GPG Key ID: 9743CEF10935949A

View File

@ -4,6 +4,13 @@ set -e
echo "This script installs Foundation, it is developed against Paper and may depend on" echo "This script installs Foundation, it is developed against Paper and may depend on"
echo "Paper-specific features." echo "Paper-specific features."
echo echo
# Ensure curl and jq are installed.
if ! hash curl jq &> /dev/null; then
echo "curl and jq must be installed"
exit 1
fi
echo "Installing..." echo "Installing..."
# Create the plugins directory if it doesn't exist. # Create the plugins directory if it doesn't exist.