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