usb_backup: fix typo and add purge of files

This commit is contained in:
Romain Bazile 2020-11-27 11:30:49 +01:00
parent a62891eb6a
commit bcb1e245f0

View file

@ -112,6 +112,9 @@ do_backup()
${log} "ERROR: The files were corrupted during the copy!" ${log} "ERROR: The files were corrupted during the copy!"
else else
${log} "All files copied successfully!" ${log} "All files copied successfully!"
${log} "Starting purge!"
rm -R $SOURCE*
fi
else else
${log} "Warning: ${DEVICE} does not contain the special file planktoscope.backup at its root" ${log} "Warning: ${DEVICE} does not contain the special file planktoscope.backup at its root"
fi fi