aboutsummaryrefslogtreecommitdiff
path: root/bin/autoclean.sh.m4
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2024-05-22 08:05:23 +0200
committerjakobst1n <jakob.stendahl@outlook.com>2024-05-22 08:05:23 +0200
commitf5e8a5c13c10dd93d614dea2530877ef48071a22 (patch)
treed9119cd317eb235fdbb5229db71ed45b8d833ba3 /bin/autoclean.sh.m4
parenteaf4ca6b91de4e3efceb092a17b97503cdaa05cd (diff)
downloaddotfiles-f5e8a5c13c10dd93d614dea2530877ef48071a22.tar.gz
dotfiles-f5e8a5c13c10dd93d614dea2530877ef48071a22.zip
Update neovim, tweak some things
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