From 9c6ea8133766f1dad3db7883fd9b69961e7330f0 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Tue, 19 Jul 2022 06:32:29 +0700 Subject: [PATCH] check jq, fixes #170 --- setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.sh b/setup.sh index c59fb4a..4745766 100755 --- a/setup.sh +++ b/setup.sh @@ -90,6 +90,11 @@ transform_path() { fi } +if ! command -v jq; then + echo "jq not found, please install it, https://stedolan.github.io/jq/download/" + exit 1 +fi + CACHE_PATH="" while getopts 'c:' flag; do