No need for the if, just remove any files that match the pattern.

This commit is contained in:
2025-10-14 06:55:42 -07:00
parent 2697645abe
commit c138fe67d6

View File

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