aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcleaner.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/cleaner.in b/cleaner.in
index d8a57bc..925ec3f 100755
--- a/cleaner.in
+++ b/cleaner.in
@@ -58,9 +58,9 @@ lastweek=$((thisweek - retainweeks))
$verbose \# removing from $dir files ending in $suffix and older than week $lastweek
if [ -z "$suffix" ]; then
- find $dir -type f -printf '%f\n'
+ find $dir -maxdepth 1 -type f -printf '%f\n'
else
- find $dir -type f -name "*$suffix" -printf '%f\n'
+ find $dir -maxdepth 1 -type f -name "*$suffix" -printf '%f\n'
fi |
while read name
do

Return to:

Send suggestions and report system problems to the System administrator.