diff --git a/mozilla/webtools/tinderbox/clean.pl b/mozilla/webtools/tinderbox/clean.pl index f9aa9c8d75a..69936f35d95 100755 --- a/mozilla/webtools/tinderbox/clean.pl +++ b/mozilla/webtools/tinderbox/clean.pl @@ -33,7 +33,7 @@ chdir $tinderboxdir or die "Couldn't chdir to $tinderboxdir"; # Remove files older than 7 days # 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);