mirror of
https://github.com/curl/curl.git
synced 2026-06-02 04:24:15 +03:00
don't display the . and .. files when dumping the log/ contents
This commit is contained in:
parent
bc11929395
commit
4661cc7403
1 changed files with 2 additions and 2 deletions
|
|
@ -1548,8 +1548,8 @@ sub displaylogs {
|
|||
|
||||
print "== Contents of files in the log/ dir after test $testnum\n";
|
||||
foreach $log (sort @logs) {
|
||||
# the log file contains more than zero bytes
|
||||
if(-s "$LOGDIR/$log") {
|
||||
# the log file is not "." or ".." and contains more than zero bytes
|
||||
if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") {
|
||||
print "== Start of file $log\n";
|
||||
displaylogcontent("$LOGDIR/$log");
|
||||
print "== End of file $log\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue