Fix Join-Path usage when locating agent settings

This commit is contained in:
2025-10-05 17:08:37 -06:00
parent aa81623e53
commit 9bc04ef920

View File

@@ -118,8 +118,8 @@ function Get-AgentServiceId {
if (-not $AgentRoot) { $AgentRoot = $scriptDir }
$settingsDir = Join-Path $AgentRoot 'Settings'
$candidates = @(
Join-Path $settingsDir 'agent_settings_svc.json',
Join-Path $settingsDir 'agent_settings.json'
(Join-Path $settingsDir 'agent_settings_svc.json')
(Join-Path $settingsDir 'agent_settings.json')
)
foreach ($path in $candidates) {