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

View File

@ -6,9 +6,8 @@ echo "▶️ $0 $*"
### ###
# Check for the jq library needed for parsing JSON # Check for the jq library needed for parsing JSON
### ###
if [ ! command -v jq &> /dev/null ] if ! command -v jq; then
then echo "⚠️ jq command missing from \$PATH!"
echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!"
exit 1 exit 1
fi fi