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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user