From 4c4c37f4bba10ea91b81138369881ccfb48065e1 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Fri, 16 Aug 2024 10:46:28 +0800 Subject: [PATCH] script: Check if `jq` is installed Signed-off-by: Jonathan Schwender --- scripts/generate_bindings.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/generate_bindings.sh b/scripts/generate_bindings.sh index b5847fb..80a5da5 100755 --- a/scripts/generate_bindings.sh +++ b/scripts/generate_bindings.sh @@ -6,7 +6,13 @@ ROOT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"/.. &> /dev/null && pwd ) if ! command -v bindgen then - echo "Error: bindgen not found" + echo "Error: bindgen not found. Please install it." + exit 1 +fi + +if ! command -v jq +then + echo "Error: jq not found. Please install it." exit 1 fi