From d0b6cd382c050a5d9b0554a9feeb53cc4df4dd4a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Dec 2015 16:09:04 +0000 Subject: [PATCH] Invert logic --- src/freedombone-backup-local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-backup-local b/src/freedombone-backup-local index 74aeccd9..23b881a1 100755 --- a/src/freedombone-backup-local +++ b/src/freedombone-backup-local @@ -337,7 +337,7 @@ function backup_directories { function remove_backup_directory { if [ $1 ]; then if [[ $1 == "remove" ]]; then - if [ ! -d $USB_MOUNT/backup ]; then + if [ -d $USB_MOUNT/backup ]; then rm -rf $USB_MOUNT/backup echo $'Existing backup directory removed' unmount_drive