diff --git a/src/Agent.ps1 b/src/Agent.ps1 index eed01d0..cf5e876 100644 --- a/src/Agent.ps1 +++ b/src/Agent.ps1 @@ -82,7 +82,7 @@ function Start-SshAgent { if ($env:GIT_SSH -imatch 'plink') { Write-Host "GIT_SSH set to $($env:GIT_SSH), using Pageant as SSH agent." - $pageant = Get-Command pageant -TotalCount 1 -Erroraction SilentlyContinue + $pageant = Get-Command pageant -CommandType Application -TotalCount 1 -Erroraction SilentlyContinue $pageant = if ($pageant) { $pageant } else { Find-Pageant } if (!$pageant) { if (!$Quiet) {