aboutsummaryrefslogtreecommitdiff
path: root/cleaner.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-09-01 14:15:27 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-09-01 14:15:27 +0300
commit1c1930ac5260847b9b6e63caf3ba844be8a7d41f (patch)
tree427078c4398d379dfafb0edf81ca1bb66b34a5a4 /cleaner.in
parentcd26df51a1cb73e3f0a475b83bf7f8c6e67176f7 (diff)
downloadbeam-1c1930ac5260847b9b6e63caf3ba844be8a7d41f.tar.gz
beam-1c1930ac5260847b9b6e63caf3ba844be8a7d41f.tar.bz2
Bugfix.
* cleaner.in: Fix regexp for extracting week number from the filename.
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
@@ -88,7 +88,7 @@ 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

Return to:

Send suggestions and report system problems to the System administrator.