'jq check

This commit is contained in:
fishyW
2024-05-30 22:38:06 +10:00
parent 031316d313
commit 2d5105a129

View File

@@ -19,6 +19,11 @@ if ! which wget > /dev/null; then
exit 1 exit 1
fi 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 SCRIPT_PATH=$(dirname $(readlink -f $0))
readonly INSTALL_PATH="/root/.scripts" readonly INSTALL_PATH="/root/.scripts"
readonly USER_NAME="$(logname)" readonly USER_NAME="$(logname)"