diff options
Diffstat (limited to 'bin/autoclean.sh.m4')
-rw-r--r-- | bin/autoclean.sh.m4 | 8 |
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 |