Skip to content

Commit

Permalink
Specify CommandType Application when getting pageant command
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Jun 6, 2020
1 parent d47806c commit 6338d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6338d2d

Please sign in to comment.