From eff6da64f76934fad0a3bc7f5ae1239703f15c0c Mon Sep 17 00:00:00 2001
From: thelamer <ryankuba@gmail.com>
Date: Fri, 7 May 2021 17:53:35 -0700
Subject: [PATCH] check for jq binary

---
 root/docker-mods | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/root/docker-mods b/root/docker-mods
index fec9f3d..d1b955e 100755
--- a/root/docker-mods
+++ b/root/docker-mods
@@ -6,8 +6,8 @@ if [ -z ${DOCKER_MODS+x} ]; then
 fi
 
 # Check for curl
-if [ ! -f /usr/bin/curl ]; then
-  echo "[mod-init] Curl was not found on this system for Docker mods installing"
+if [ ! -f /usr/bin/curl ] || [ ! -f /usr/bin/jq ]; then
+  echo "[mod-init] Curl/JQ was not found on this system for Docker mods installing"
   if [ -f /usr/bin/apt ]; then
     ## Ubuntu
     apt-get update
-- 
GitLab