We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b719336 commit 32defcaCopy full SHA for 32defca
cmd/get.go
@@ -116,7 +116,7 @@ var getCmd = &cobra.Command{
116
}
117
118
stdout, err = exec.Command("ssh-add", "-L").Output()
119
- if err != nil {
+ if exiterr, ok := err.(*exec.ExitError); (ok && exiterr.ExitCode() == 2) || (!ok && err != nil) {
120
return fmt.Errorf("could not query the SSH agent for its keys: %w", err)
121
122
var remove bytes.Buffer
0 commit comments