Add friendly message/exit when jq isn't available

This commit is contained in:
rsp2k 2021-10-07 11:12:35 -06:00 committed by GitHub
parent e42e14ef4d
commit e22261c810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,9 +6,8 @@ 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}'!"
if ! command -v jq; then
echo "⚠️ jq command missing from \$PATH!"
exit 1
fi