From c138fe67d6d5020250a9e53faa9b93df4cee380c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 14 Oct 2025 06:55:42 -0700 Subject: [PATCH] No need for the if, just remove any files that match the pattern. --- bin/backup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/backup.sh b/bin/backup.sh index 8bbbc5c..8daf237 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -18,10 +18,8 @@ time="`which time`" ## Main ## # Remove the last backup. -if [[ -e "$BASENAME"*"$TAG"* ]]; then - echo "`date` - Removing existing file." - rm -fv "$BASENAME"*"$TAG"* -fi +echo "`date` - Removing existing files." +rm -fv "$BASENAME"*"$TAG"* echo -e "\n`date` - Take down services for a cold backup." manage.sh -d