From 587e4c5e3dec3220b3b5735e9f3135074baf1186 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sat, 25 Mar 2023 10:39:55 -0700 Subject: [PATCH] exit 1 if gravity database creation fails. Signed-off-by: Dan Schaper --- gravity.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index ce0d349c..e4e7c64c 100755 --- a/gravity.sh +++ b/gravity.sh @@ -1004,7 +1004,10 @@ if ! gravity_CheckDNSResolutionAvailable; then exit 1 fi -gravity_DownloadBlocklists +if ! gravity_DownloadBlocklists; then + echo -e " ${CROSS} Unable to create gravity database. Please try again later. If the problem persists, please contact support." + exit 1 +fi # Create local.list gravity_generateLocalList