From 2697645abe0a6d900623d264eb9dbfea31133f74 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 14 Oct 2025 06:43:54 -0700 Subject: [PATCH] Properly check if other backups exist. --- bin/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/backup.sh b/bin/backup.sh index 80e7cf4..8bbbc5c 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -18,7 +18,7 @@ time="`which time`" ## Main ## # Remove the last backup. -if [[ -e $file ]]; then +if [[ -e "$BASENAME"*"$TAG"* ]]; then echo "`date` - Removing existing file." rm -fv "$BASENAME"*"$TAG"* fi