usb_backup: fix typo and add purge of files
This commit is contained in:
parent
a62891eb6a
commit
bcb1e245f0
|
@ -112,6 +112,9 @@ do_backup()
|
|||
${log} "ERROR: The files were corrupted during the copy!"
|
||||
else
|
||||
${log} "All files copied successfully!"
|
||||
${log} "Starting purge!"
|
||||
rm -R $SOURCE*
|
||||
fi
|
||||
else
|
||||
${log} "Warning: ${DEVICE} does not contain the special file planktoscope.backup at its root"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue