From 7b9b7b9b3bc03a685226129b012ba56c73b1fd66 Mon Sep 17 00:00:00 2001 From: Logan Gorence Date: Wed, 22 Dec 2021 23:58:59 +0000 Subject: [PATCH] Add check for curl and jq. --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index c00d41c..46d4786 100644 --- a/install.sh +++ b/install.sh @@ -4,6 +4,13 @@ set -e echo "This script installs Foundation, it is developed against Paper and may depend on" echo "Paper-specific features." 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..." # Create the plugins directory if it doesn't exist.