Skip to content

Commit

Permalink
Update Get-VcList.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Jul 25, 2024
1 parent a9d0540 commit 7a045b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions VcRedist/Public/Get-VcList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ function Get-VcList {
# if ($Release -match $JsonManifest.Unsupported.Release) {
# Write-Warning -Message "This list includes unsupported Visual C++ Redistributables."
# }
[System.Management.Automation.PSObject[]] $Output = $JsonManifest.Supported | Where-Object { $Release -contains $_.Release } | `
Where-Object { $Architecture -contains $_.Architecture }
$Output = New-Object -TypeName "System.Collections.ArrayList"
$Output.Add([System.Management.Automation.PSObject]($JsonManifest.Supported | Where-Object { $Release -contains $_.Release } | `
Where-Object { $Architecture -contains $_.Architecture }))
}

try {
Expand Down

0 comments on commit 7a045b6

Please sign in to comment.