bin/release: Fail if jq is missing

pull/212/head
Elian Doran 2024-07-14 21:12:51 +07:00
parent 686b9c840e
commit f678c4337b
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

@ -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}(-.+)?$ ]] ;