Properly check if other backups exist.
This commit is contained in:
@@ -18,7 +18,7 @@ time="`which time`"
|
|||||||
## Main ##
|
## Main ##
|
||||||
|
|
||||||
# Remove the last backup.
|
# Remove the last backup.
|
||||||
if [[ -e $file ]]; then
|
if [[ -e "$BASENAME"*"$TAG"* ]]; then
|
||||||
echo "`date` - Removing existing file."
|
echo "`date` - Removing existing file."
|
||||||
rm -fv "$BASENAME"*"$TAG"*
|
rm -fv "$BASENAME"*"$TAG"*
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user