Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Nov 25, 2023
1 parent 2ed3c01 commit 23858e6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ function CalculateProjectsAndApps {
$excludeProjectList | ForEach-Object { Write-Host "- $_" }
foreach($mask in 'Apps','Dependencies') {
$allApps = @{}
foreach($ci in (Get-ChildItem -Path $tempFolder -Directory)) {
if ($ci.Name -match "^(.*)-main-$mask-(\d*\.\d*\.\d*\.\d*)$") {
foreach($folder in (Get-ChildItem -Path $tempFolder -Directory)) {
if ($folder.Name -match "^(.*)-main-$mask-(\d*\.\d*\.\d*\.\d*)$") {
$project = $Matches[1]
Write-Host "Project: $project"
if ($projectList | Where-Object { $project -like $_ }) {
Expand All @@ -253,8 +253,8 @@ function CalculateProjectsAndApps {
if (-not $allApps.ContainsKey("$project")) {
$allApps."$project" = @()
}
Get-ChildItem -Path $ci.FullName -Filter '*.app' | ForEach-Object {
$allApps."$project" += @($ci.FullName)
Get-ChildItem -Path $folder.FullName -Filter '*.app' | ForEach-Object {
$allApps."$project" += @($_.FullName)
}
}
}
Expand Down

0 comments on commit 23858e6

Please sign in to comment.