Skip to content

Commit 1109a8b

Browse files
authored
Merge pull request #33 from gruntwork-io/add-stderr
Update RunSshCommand to output both stdout and stderr.
2 parents 5f7e41e + 5186b94 commit 1109a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func runSshCommand(sshSession *SshSession) (string, error) {
9292
return "", err
9393
}
9494

95-
bytes, err := sshSession.Session.Output(sshSession.Options.Command)
95+
bytes, err := sshSession.Session.CombinedOutput(sshSession.Options.Command)
9696
if err != nil {
9797
return "", err
9898
}

0 commit comments

Comments
 (0)