зеркало из https://github.com/mozilla/pjs.git
Use correct logic for removal
This commit is contained in:
Родитель
9b21dec00e
Коммит
1ba9e038c3
|
@ -33,7 +33,7 @@ chdir $tinderboxdir or die "Couldn't chdir to $tinderboxdir";
|
||||||
# Remove files older than 7 days
|
# Remove files older than 7 days
|
||||||
#
|
#
|
||||||
sub files_to_remove {
|
sub files_to_remove {
|
||||||
unlink if /(?:\.gz|\.brief\.html)$/ or int(-M $_) > 7;
|
unlink if /(?:\.gz|\.brief\.html)$/ and int(-M $_) > 7;
|
||||||
}
|
}
|
||||||
&find(\&files_to_remove, $tinderboxdir);
|
&find(\&files_to_remove, $tinderboxdir);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче