From fdf44355d2dc6aad23b269aff29f61f4ff700706 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 16 Nov 2024 12:08:27 +0100 Subject: [PATCH] Keep up to 10 database backups Signed-off-by: DL6ER --- gravity.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity.sh b/gravity.sh index 3ca775a4..ebef5d2f 100755 --- a/gravity.sh +++ b/gravity.sh @@ -425,14 +425,14 @@ gravity_DownloadBlocklists() { echo -e "\\n ${CROSS} Unable to copy data from ${gravityDBfile} to ${gravityTEMPfile}\\n ${output}" # Try to attempt a backup restore - for i in {1..9}; do + for i in {1..10}; do if try_restore_backup "${i}"; then break fi done # If none of the attempts worked, return 1 - if [[ "${i}" -eq 9 ]]; then + if [[ "${i}" -eq 10 ]]; then return 1 fi