Properly check if other backups exist.

This commit is contained in:
2025-10-14 06:43:54 -07:00
parent ce111d01f3
commit 2697645abe

View File

@@ -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