Add friendly message/exit when jq isn't available
This commit is contained in:
parent
02794f368b
commit
ab41eaa5d9
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue