aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-11-19 11:33:31 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2012-11-19 11:33:31 +0200
commite8534e654e2dc2ef125b67f0f9d7ad9e21322e83 (patch)
tree120a05c8972eeb5ab5a355c3307032a0c28cd235
parent70f09e06f7f400fa4fbabf0c4fff09cd2208a932 (diff)
downloadbeam-e8534e654e2dc2ef125b67f0f9d7ad9e21322e83.tar.gz
beam-e8534e654e2dc2ef125b67f0f9d7ad9e21322e83.tar.bz2
Minor fix.
* cleaner.in: Limit descend to 1 directory level.
-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.