Skip to content

Commit

Permalink
Show result from running the ssh-add command
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Nov 8, 2020
1 parent d2e2eca commit 88b8843
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/minikube/cmd/docker-env.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ var dockerEnvCmd = &cobra.Command{
exit.Error(reason.IfSSHClient, "Error with ssh-add", err)
}

err = exec.Command(path, d.GetSSHKeyPath()).Run()
cmd := exec.Command(path, d.GetSSHKeyPath())
cmd.Stderr = os.Stderr
err = cmd.Run()
if err != nil {
exit.Error(reason.IfSSHClient, "Error with ssh-add", err)
}
Expand Down

0 comments on commit 88b8843

Please sign in to comment.