Skip to content

Commit

Permalink
containerhelperfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstrup1 committed Feb 23, 2024
1 parent 714ff2d commit 1cfa364
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AppHandling/Get-NavContainerAppInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ try {
$script:installedApps = @()

function AddAnApp { Param($anApp)
#Write-Host "AddAnApp $($anapp.Name) $($anapp.Version)"
Write-Host "AddAnApp $($anapp.Name) $($anapp.Version)"
$alreadyAdded = $script:installedApps | Where-Object { $_.AppId -eq $anApp.AppId -and $_.Version -eq $anApp.Version }
if (-not ($alreadyAdded)) {
#Write-Host "add dependencies"
Expand All @@ -89,15 +89,15 @@ try {
}

function AddDependency { Param($dependency)
#Write-Host "Add Dependency $($dependency.Name) $($dependency.Version)"
$dependentApp = $apps | Where-Object { $_.AppId -eq $dependency.AppId }
Write-Host " -- Add Dependency $($dependency.Name) $($dependency.Version)"
$dependentApp = $apps | Where-Object { "$($_.AppId)" -eq "$($dependency.AppId)" }
if ($dependentApp) {
@($dependentApp) | ForEach-Object { AddAnApp -AnApp $_ }
}
}

function AddDependencies { Param($anApp)
#Write-Host "Add Dependencies for $($anApp.Name)"
# Write-Host "Add Dependencies for $($anApp.Name)"
if (($anApp) -and ($anApp.Dependencies)) {
$anApp.Dependencies | % { AddDependency -Dependency $_ }
}
Expand Down

0 comments on commit 1cfa364

Please sign in to comment.