Skip to content

Commit

Permalink
Merge pull request #1308 from dotnet/joeloff/1300
Browse files Browse the repository at this point in the history
Exclude log files #1300
  • Loading branch information
joeloff committed Nov 9, 2018
2 parents 1ac2647 + 38f4c57 commit 3da8e56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SignCheck/SignCheck/SignCheck.cs
Expand Up @@ -277,6 +277,17 @@ private List<string> GetInputFilesFromOptions()
DownloadFilesAsync(downloadFiles).Wait();
}

// Exclude log files in case they are created in the folder being scanned.
if (!String.IsNullOrEmpty(Options.ErrorLogFile))
{
inputFiles.Remove(Path.GetFullPath(Options.ErrorLogFile));
}

if (!String.IsNullOrEmpty(Options.LogFile))
{
inputFiles.Remove(Path.GetFullPath(Options.LogFile));
}

return inputFiles;
}

Expand Down

0 comments on commit 3da8e56

Please sign in to comment.