Merge pull request #78 from bunny-lab-io/codex/fix-join-path-error-in-update.ps1

Fix Update.ps1 Join-Path usage when locating agent settings
This commit is contained in:
2025-10-05 17:08:48 -06:00
committed by GitHub

View File

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