Skip to content

Commit

Permalink
Another appid fix for next major (microsoft#3368)
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk authored Feb 25, 2024
1 parent 174fa46 commit c3d199f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AppHandling/Run-AlPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,11 @@ function GetInstalledAppIds {
$installedApps = @()
}
Write-Host "::group::Installed Apps"
$installedApps | ForEach-Object { Write-Host "- $($_.AppId):$($_.Name)" }
$installedApps | ForEach-Object {
Write-Host "- $($_.AppId):$($_.Name)"
"$($_.AppId)"
}
Write-Host "::endgroup::"
return $installedApps.AppId
}

$telemetryScope = InitTelemetryScope -name $MyInvocation.InvocationName -parameterValues $PSBoundParameters -includeParameters @()
Expand Down Expand Up @@ -2190,7 +2192,7 @@ $apps | ForEach-Object {
$upgradedApps += @($appJson.Id.ToLowerInvariant())

$installedApp = $false
if ($installedApps | Where-Object { $_.AppId -eq $appJson.Id }) {
if ($installedApps | Where-Object { "$($_.AppId)" -eq $appJson.Id }) {
$installedApp = $true
}

Expand Down

0 comments on commit c3d199f

Please sign in to comment.