aboutsummaryrefslogtreecommitdiff
path: root/cleaner.in
diff options
context:
space:
mode:
Diffstat (limited to 'cleaner.in')
-rwxr-xr-xcleaner.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cleaner.in b/cleaner.in
index 0a9a35f..a35b605 100755
--- a/cleaner.in
+++ b/cleaner.in
@@ -85,13 +85,13 @@ if [ -z "$suffix" ]; then
else
find $dir -maxdepth 1 -type f -name "*$suffix" -printf '%f\n'
fi |
while read name
do
$verbose \# considering $name
- week=$(expr "$name" : '[^-][^-]*-\([0-9][0-9]*\)-.*')
+ week=$(expr "$name" : '.*-\([0-9][0-9]*\)-[0-9][0-9]*-[0-9][0-9]*.*$')
if [ $thisweek -ge $week ]; then
if [ $(expr $thisweek - $week) -gt $retainweeks ]; then
$verbose \# removing $name
$dry_run rm $dir/$name
fi
else

Return to:

Send suggestions and report system problems to the System administrator.