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
|
||||
###
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue