From be1d1106870e30a48530440fd9dea8e62511a428 Mon Sep 17 00:00:00 2001 From: b3nj4m1n Date: Fri, 13 May 2022 18:05:05 +0200 Subject: [PATCH] Check for presence of jq --- xdg-ninja.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 40fe630..72122aa 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -42,6 +42,12 @@ for i in "$@" ; do fi done +if ! command -v jq &> /dev/null +then + echo "jq is needed to run this script, but it wasn't found. Please install it to be able to use this script." + USE_GLOW=false +fi + ERR=0 WARN=1 INFO=2 -- 2.47.3