summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2014-09-01 11:15:27 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2014-09-01 11:15:27 (GMT)
commit1c1930ac5260847b9b6e63caf3ba844be8a7d41f (patch) (unidiff)
tree427078c4398d379dfafb0edf81ca1bb66b34a5a4
parentcd26df51a1cb73e3f0a475b83bf7f8c6e67176f7 (diff)
downloadbeam-1c1930ac5260847b9b6e63caf3ba844be8a7d41f.tar.gz
beam-1c1930ac5260847b9b6e63caf3ba844be8a7d41f.tar.bz2
Bugfix.
* cleaner.in: Fix regexp for extracting week number from the filename.
Diffstat (more/less context) (ignore whitespace changes)
-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 |
88 while read name 88 while read name
89 do 89 do
90 $verbose \# considering $name 90 $verbose \# considering $name
91 week=$(expr "$name" : '[^-][^-]*-\([0-9][0-9]*\)-.*') 91 week=$(expr "$name" : '.*-\([0-9][0-9]*\)-[0-9][0-9]*-[0-9][0-9]*.*$')
92 if [ $thisweek -ge $week ]; then 92 if [ $thisweek -ge $week ]; then
93 if [ $(expr $thisweek - $week) -gt $retainweeks ]; then 93 if [ $(expr $thisweek - $week) -gt $retainweeks ]; then
94 $verbose \# removing $name 94 $verbose \# removing $name

Return to:

Send suggestions and report system problems to the System administrator.