mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
prevent files named ".nfs[something]" from being displayed when failing
This commit is contained in:
parent
7119679080
commit
20057aee2e
@ -1653,6 +1653,9 @@ sub displaylogs {
|
|||||||
foreach $log (sort @logs) {
|
foreach $log (sort @logs) {
|
||||||
# the log file is not "." or ".." and contains more than zero bytes
|
# the log file is not "." or ".." and contains more than zero bytes
|
||||||
if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
|
if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
|
||||||
|
if($log =~ /^\.nfs/) {
|
||||||
|
next;
|
||||||
|
}
|
||||||
print "== Start of file $log\n";
|
print "== Start of file $log\n";
|
||||||
displaylogcontent("$LOGDIR/$log");
|
displaylogcontent("$LOGDIR/$log");
|
||||||
print "== End of file $log\n";
|
print "== End of file $log\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user