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