Fix script config

This commit is contained in:
Den Delimarsky 🌺
2025-09-21 00:51:56 -07:00
parent da60d35bc1
commit 93e41567d9
2 changed files with 35 additions and 2 deletions

View File

@@ -319,6 +319,11 @@ function Update-ExistingAgentFile {
$output.Add($line)
}
# Post-loop check: if we're still in the Active Technologies section and haven't added new entries
if ($inTech -and -not $techAdded -and $newTechEntries.Count -gt 0) {
$newTechEntries | ForEach-Object { $output.Add($_) }
}
Set-Content -LiteralPath $TargetFile -Value ($output -join [Environment]::NewLine)
return $true
}