From f66d11721087a10b43de8e38704c7cf02682336f Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Wed, 8 Oct 2025 18:05:22 -0600 Subject: [PATCH] Fix conditional logic for Test-Path checks --- Update.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update.ps1 b/Update.ps1 index f6f7929..e4109a8 100644 --- a/Update.ps1 +++ b/Update.ps1 @@ -150,7 +150,7 @@ function Get-RepositoryCommitHash { if ($AgentRoot -and ($candidates -notcontains $AgentRoot)) { $candidates += $AgentRoot } if ($ProjectRoot) { $agentRootCandidate = Join-Path $ProjectRoot 'Agent\Borealis' - if (Test-Path $agentRootCandidate -PathType Container -and ($candidates -notcontains $agentRootCandidate)) { + if ((Test-Path $agentRootCandidate -PathType Container) -and ($candidates -notcontains $agentRootCandidate)) { $candidates += $agentRootCandidate } }