Add friendly check for jq

This commit is contained in:
rsp2k 2021-10-06 13:58:30 -06:00 committed by GitHub
parent 6a52a48b71
commit e42e14ef4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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