Invert logic

This commit is contained in:
Bob Mottram 2015-12-10 16:09:04 +00:00
parent 7ae6d57543
commit d0b6cd382c
1 changed files with 1 additions and 1 deletions

View File

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