From f678c4337b065c604d5fd666ae8b3bc8c580c31e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 14 Jul 2024 21:12:51 +0300 Subject: [PATCH] bin/release: Fail if jq is missing --- bin/release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/release.sh b/bin/release.sh index 65610c229..938fa31dd 100755 --- a/bin/release.sh +++ b/bin/release.sh @@ -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}(-.+)?$ ]] ;