From e42e14ef4d9b6b7fbff06186e2882a178634e0d4 Mon Sep 17 00:00:00 2001 From: rsp2k Date: Wed, 6 Oct 2021 13:58:30 -0600 Subject: [PATCH] Add friendly check for jq --- build-latest.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build-latest.sh b/build-latest.sh index 54ebe36..3ddb607 100755 --- a/build-latest.sh +++ b/build-latest.sh @@ -3,6 +3,15 @@ echo "▶️ $0 $*" +### +# Check for the jq library needed for parsing JSON +### +if [ ! command -v jq &> /dev/null ] +then + echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!" + exit 1 +fi + ### # Checking for the presence of GITHUB_OAUTH_CLIENT_ID # and GITHUB_OAUTH_CLIENT_SECRET