From 2d5105a1293e4d69b75b2539b2018cfd3879b354 Mon Sep 17 00:00:00 2001 From: fishyW Date: Thu, 30 May 2024 22:38:06 +1000 Subject: [PATCH] 'jq check --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 9e8c36a..6165082 100755 --- a/install.sh +++ b/install.sh @@ -19,6 +19,11 @@ if ! which wget > /dev/null; then exit 1 fi +if ! which jq > /dev/null; then + printf '\033[1mjq\033[0m package must be installed to run this script\n' + exit 1 +fi + readonly SCRIPT_PATH=$(dirname $(readlink -f $0)) readonly INSTALL_PATH="/root/.scripts" readonly USER_NAME="$(logname)"