bin/release: Fail if jq is missing

This commit is contained in:
Elian Doran 2024-07-14 21:12:51 +03:00
parent 686b9c840e
commit f678c4337b
No known key found for this signature in database

View File

@ -7,6 +7,11 @@ if [[ $# -eq 0 ]] ; then
exit 1
fi
if ! command -v jq &> /dev/null; then
echo "Missing command: jq"
exit 1
fi
VERSION=$1
if ! [[ ${VERSION} =~ ^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}(-.+)?$ ]] ;