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!"
|
${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
|
||||||
|
|
Loading…
Reference in a new issue