Check if jq is installed

This commit is contained in:
David Randall 2022-01-06 20:11:11 -05:00
parent f2e6d7c2be
commit 5bbc1d1915

View File

@ -9,6 +9,14 @@ mesh_install="/meshcentral"
mesh_data="/meshcentral/meshcentral-data" mesh_data="/meshcentral/meshcentral-data"
mesh_program="node_modules/meshcentral" mesh_program="node_modules/meshcentral"
if ! which jq >/dev/null
then
echo "jq is not installed"
echo "Please install jq with:"
echo " sudo apt-get install jq"
exit 1
fi
GREEN='\033[0;32m' GREEN='\033[0;32m'
YELLOW='\033[1;33m' YELLOW='\033[1;33m'
BLUE='\033[0;34m' BLUE='\033[0;34m'