Invert logic
This commit is contained in:
parent
7ae6d57543
commit
d0b6cd382c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue