Use correct logic for removal

git-svn-id: svn://10.0.0.236/trunk@44451 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
slamm%netscape.com
1999-08-25 05:01:00 +00:00
parent e40c280151
commit 12a0f6ffde

View File

@@ -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);