From 5bbc1d191564156979a761b850b75de64916b7a0 Mon Sep 17 00:00:00 2001 From: David Randall Date: Thu, 6 Jan 2022 20:11:11 -0500 Subject: [PATCH] Check if jq is installed --- scripts/migrate-mesh-to-postgres.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/migrate-mesh-to-postgres.sh b/scripts/migrate-mesh-to-postgres.sh index e0fc48a..33a81d6 100755 --- a/scripts/migrate-mesh-to-postgres.sh +++ b/scripts/migrate-mesh-to-postgres.sh @@ -9,6 +9,14 @@ mesh_install="/meshcentral" mesh_data="/meshcentral/meshcentral-data" 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' YELLOW='\033[1;33m' BLUE='\033[0;34m'