aboutsummaryrefslogtreecommitdiff
path: root/bin/autoclean.sh.m4
diff options
context:
space:
mode:
Diffstat (limited to 'bin/autoclean.sh.m4')
-rw-r--r--bin/autoclean.sh.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/autoclean.sh.m4 b/bin/autoclean.sh.m4
new file mode 100644
index 0000000..7a24436
--- /dev/null
+++ b/bin/autoclean.sh.m4
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+echo "[$(date)] Running cleaning routine"
+set -o pipefail
+set -x
+
+max_age_days=5
+find "DT_HOME_DIRECTORY/Downloads/" -mtime +${max_age_days} -delete