mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 17:41:58 -06:00
Merge pull request #85 from bunny-lab-io/codex/fix-update.ps1-parameter-errors
Fix conditional logic for Test-Path checks
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user