From 7e8ac6bbd1fcc99d37ea777486b83314bfc4433d Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 18 Mar 2022 11:49:30 -0600 Subject: [PATCH] rm --- restore.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/restore.sh b/restore.sh index c025c50..4dd39f4 100755 --- a/restore.sh +++ b/restore.sh @@ -1,6 +1,7 @@ all_backups=($(find /mnt/save -not -path '*/\.*' -type f | sort -r)) for ((i=${#all_backups[@]}-1; i>50; i--)); do echo rm old backpu ${all_backups[i]} >&2 + rm -f ${all_backups[i]} || true done for b in "${all_backups[@]}"; do