Properly check if other backups exist.
This commit is contained in:
1 parent
ce111d01f3
commit
2697645abe
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user