aboutsummaryrefslogtreecommitdiff
path: root/send-refresh.sh
diff options
context:
space:
mode:
authorSanJacobs2022-10-08 16:01:56 +0200
committerSanJacobs2022-10-08 16:01:56 +0200
commit5478639ff245e16bec18fa6e5313703816d65cf4 (patch)
treed015fba45f6f0f82e7e188c232f5716e25f2f107 /send-refresh.sh
parent9932d6e71fe67faed901f56ae1d17c1f5b53587e (diff)
downloadsend-5478639ff245e16bec18fa6e5313703816d65cf4.tar.gz
send-5478639ff245e16bec18fa6e5313703816d65cf4.tar.bz2
send-5478639ff245e16bec18fa6e5313703816d65cf4.zip
Planning things out
Diffstat (limited to 'send-refresh.sh')
-rw-r--r--send-refresh.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/send-refresh.sh b/send-refresh.sh
index d57647f..371b596 100644
--- a/send-refresh.sh
+++ b/send-refresh.sh
@@ -1,8 +1,7 @@
#!/bin/bash
-# Recursively delete directories by age (14 days)
-find /path/to/base/dir/* -type d -ctime +14 -exec rm -rf {} \;
-
+# Recursively delete directories by age (14 days), and only exactly at the depth of the base directory
+find /path/to/base/dir/* -type d -mindepth 1 -maxdepth 1 -ctime +14 -exec rm -rf {} \;