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 Tobias Genannt
parent 02794f368b
commit ab41eaa5d9
1 changed files with 2 additions and 3 deletions

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