Skip to content

Commit

Permalink
Cross ref fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 16, 2023
1 parent e1aa127 commit 1cebcd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Get-LocallyReferencedFileList {

$resList = @()

$fileContent = $TemplateMap.Count -gt 0 ? $TemplateMap[$FilePath] : (Get-Content $FilePath)
$fileContent = ($TemplateMap.Count -gt 0 -and $TemplateMap.Keys -contains $FilePath) ? $TemplateMap[$FilePath] : (Get-Content $FilePath)

$resList += $fileContent | Where-Object { $_ -match "^module .+ '(.+.bicep)' .+$" } | ForEach-Object { (Resolve-Path (Join-Path (Split-Path $FilePath) $matches[1])).Path }

Expand Down
2 changes: 1 addition & 1 deletion utilities/tools/Set-Module.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function Set-Module {

# Update the progress display.
[int] $percent = ($completedJobsCount / $job.ChildJobs.Count) * 100
Write-Progress -Activity ('Processed [{0}] files' -f $relevantTemplatePaths.Count) -Status "$percent% complete" -PercentComplete $percent
Write-Progress -Activity ("Processing [$completedJobsCount/{0}] files" -f $relevantTemplatePaths.Count) -Status "$percent% complete" -PercentComplete $percent

} while ($completedJobsCount -lt $job.ChildJobs.Count)

Expand Down

0 comments on commit 1cebcd8

Please sign in to comment.