Skip to content

Commit d0047b3

Browse files
committed
variable fix
1 parent ed4a33e commit d0047b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

eng/scripts/Show-FailureLogs.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ for ($i = 0; $i -lt $filteredLogs.Length; $i += 1)
3232
if ($i -lt $vcpkgLogFileNames.Length)
3333
{
3434
$rawContents = Get-Content $logFile -Raw
35-
$regexMatches = Select-String "See logs for more information\:\s*(\r|\n|\r\n|\n\r)(\s+(?<logFilePath>\S*)\s*(\r|\n|\r\n|\n\r))+" -input $logFile -AllMatches
36-
foreach ($furtherDetails in $regexMatches.matches.groups.Where({ $_.Name -eq "logFilePath" }))
35+
$regexMatches = Select-String "See logs for more information\:\s*(\r|\n|\r\n|\n\r)(\s+(?<logFilePath>\S*)\s*(\r|\n|\r\n|\n\r))+" -input $rawContents -AllMatches
36+
foreach ($additionalLogFile in $regexMatches.matches.groups.Where({ $_.Name -eq "logFilePath" }))
3737
{
38-
$filteredLogs += $furtherDetails.Value
38+
$filteredLogs += $additionalLogFile.Value
3939
}
4040
}
4141
} catch {

0 commit comments

Comments
 (0)