]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Check for presence of jq
authorb3nj4m1n <b3nj4m1n@gmx.net>
Fri, 13 May 2022 16:05:05 +0000 (18:05 +0200)
committerb3nj4m1n <b3nj4m1n@gmx.net>
Fri, 13 May 2022 16:05:05 +0000 (18:05 +0200)
xdg-ninja.sh

index 40fe63020e2ff3e99b3d9fca73d1d050d9361fb4..72122aaa47d8f6783d032cb3bc4ff8b91b9dac6a 100755 (executable)
@@ -42,6 +42,12 @@ for i in "$@" ; do
     fi
 done
 
     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
 ERR=0
 WARN=1
 INFO=2