diff options
Diffstat (limited to 'send-refresh.sh')
-rw-r--r-- | send-refresh.sh | 5 |
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 {} \; |