summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xremoveOldBackups.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/removeOldBackups.in b/removeOldBackups.in
index c1602d2..145a6fd 100755
--- a/removeOldBackups.in
+++ b/removeOldBackups.in
@@ -64,7 +64,8 @@ backups=$(
for dist in $(seq 0 20 365); do
printf '/ %s \S\+$/p\n' \
"$(date '+%m %Y' -d@$(($(date +%s)-24*60*60*${dist})))"
- done
+ done | \
+ sort -u
)"
} | \
cut -d' ' -f1 | \