prevent files named ".nfs[something]" from being displayed when failing

This commit is contained in:
Daniel Stenberg 2004-08-24 09:23:40 +00:00
parent 7119679080
commit 20057aee2e
1 changed files with 3 additions and 0 deletions

View File

@ -1653,6 +1653,9 @@ sub displaylogs {
foreach $log (sort @logs) {
# the log file is not "." or ".." and contains more than zero bytes
if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
if($log =~ /^\.nfs/) {
next;
}
print "== Start of file $log\n";
displaylogcontent("$LOGDIR/$log");
print "== End of file $log\n";