mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 19:21:58 -06:00
Fix Join-Path usage when locating agent settings
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user