From 3231e5c3ba833e715e8acf408b862e6b0c6fd3bd Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 9 Dec 2019 16:52:03 +0000 Subject: [PATCH] Address stickler requests. Signed-off-by: DL6ER --- gravity.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity.sh b/gravity.sh index 72f39ad4..5db14765 100755 --- a/gravity.sh +++ b/gravity.sh @@ -434,7 +434,7 @@ gravity_DownloadBlocklistFromUrl() { # Determine if blocklist is non-standard and parse as appropriate gravity_ParseFileIntoDomains "${patternBuffer}" "${saveLocation}" # Add domains to database table - str="Adding to database table" + str="Adding adlist with ID ${adlistID} to database table" echo -ne " ${INFO} ${str}..." database_table_from_file "gravity" "${saveLocation}" "${adlistID}" echo -e "${OVER} ${TICK} ${str}" @@ -677,9 +677,9 @@ if [[ "${recreate_database:-}" == true ]]; then str="Restoring from migration backup" echo -ne "${INFO} ${str}..." rm "${gravityDBfile}" - pushd "${piholeDir}" > /dev/null + pushd "${piholeDir}" > /dev/null || exit cp migration_backup/* . - popd > /dev/null + popd > /dev/null || exit echo -e "${OVER} ${TICK} ${str}" fi