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 } }