From cba53def9a9e934bf6f99416049e94c381af5b77 Mon Sep 17 00:00:00 2001 From: mag37 Date: Tue, 19 Nov 2024 21:05:11 +0100 Subject: [PATCH] added jq binary check --- podcheck.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/podcheck.sh b/podcheck.sh index caf7007..e6827c1 100644 --- a/podcheck.sh +++ b/podcheck.sh @@ -198,6 +198,12 @@ else exit 1 fi +# Check for jq binary +if [[ ! $(command -v jq) ]] ; then + printf "%s\n" "No jq binary, please install jq and try again, exiting." + exit 1 +fi + # Numbered List function options() { num=1