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

Ensure that config file gets removed

parent 2f4cd2d0
No related branches found
No related tags found
No related merge requests found
......@@ -231,11 +231,11 @@ function backup_directories {
function remove_backup_directory {
if [ "$1" ]; then
if [[ "$1" == "remove" ]]; then
if [ -f $USB_MOUNT/config.dat ]; then
rm $USB_MOUNT/config.dat
fi
if [ -d $USB_MOUNT/backup ]; then
rm -rf $USB_MOUNT/backup
if [ -f $USB_MOUNT/config.dat ]; then
rm $USB_MOUNT/config.dat
fi
echo $'Existing backup directory removed'
backup_unmount_drive
exit 0
......
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