iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i3 fix, other improvements
[distro-setup]
/
mail-backup-clean
diff --git
a/mail-backup-clean
b/mail-backup-clean
index 9f6b14b0d215d5aec8038396a8626eabe1a9817e..210173cc96d621163955d9411f9099ef6c435087 100755
(executable)
--- a/
mail-backup-clean
+++ b/
mail-backup-clean
@@
-38,4
+38,8
@@
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" exit status: $?, PIPESTATUS: ${P
# time=$(( $(date -d $(sed -r 's/(.{4})(..)(.{5})(..)(.*)/\1-\2-\3:\4:\5/' <<<$last_snap_date) +%s) -1 ))
# find /bu/md -type f \! -newermt @$time -delete
+if [[ ! -d /bu/md ]]; then
+ exit 0
+fi
+
find /bu/md -type f -mtime +100 -delete