Fix check to see if backup directory exists

This commit is contained in:
Wojciech Kozlowski 2019-12-15 09:18:12 +01:00
parent 1123c1bd8c
commit 099b244f9e

View File

@ -92,7 +92,7 @@ function backup {
volumes=$1
# Remove old backup directory
if [ ! -d ${BACKUP_DIR} ]; then
if [ -d ${BACKUP_DIR} ]; then
rm -f ${BACKUP_DIR}/*.tar
rmdir ${BACKUP_DIR}
fi