Browse Source

Invert logic

Bob Mottram 9 years ago
parent
commit
d0b6cd382c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-backup-local

+ 1
- 1
src/freedombone-backup-local View File

337
 function remove_backup_directory {
337
 function remove_backup_directory {
338
     if [ $1 ]; then
338
     if [ $1 ]; then
339
         if [[ $1 == "remove" ]]; then
339
         if [[ $1 == "remove" ]]; then
340
-            if [ ! -d $USB_MOUNT/backup ]; then
340
+            if [ -d $USB_MOUNT/backup ]; then
341
                 rm -rf $USB_MOUNT/backup
341
                 rm -rf $USB_MOUNT/backup
342
                 echo $'Existing backup directory removed'
342
                 echo $'Existing backup directory removed'
343
                 unmount_drive
343
                 unmount_drive