Skip to content
Snippets Groups Projects
Commit 2f473a55 authored by Bob Mottram's avatar Bob Mottram
Browse files

Unmount after backup removal

parent 9215f28b
No related branches found
No related tags found
No related merge requests found
......@@ -233,13 +233,14 @@ function remove_backup_directory {
if [[ "$1" == "remove" ]]; then
if [ -f $USB_MOUNT/config.dat ]; then
rm $USB_MOUNT/config.dat
echo $'Backup keys removed'
fi
if [ -d $USB_MOUNT/backup ]; then
rm -rf $USB_MOUNT/backup
echo $'Existing backup directory removed'
backup_unmount_drive
exit 0
fi
backup_unmount_drive
exit 0
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment