From bcb1e245f0ff693005ac2bb5441b4b03f7368f9c Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Fri, 27 Nov 2020 11:30:49 +0100 Subject: [PATCH] usb_backup: fix typo and add purge of files --- scripts/bash/usb_backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/bash/usb_backup.sh b/scripts/bash/usb_backup.sh index f79ad2c..9e4d833 100755 --- a/scripts/bash/usb_backup.sh +++ b/scripts/bash/usb_backup.sh @@ -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