diff options
author | mjarkk <mkopenga@gmail.com> | 2018-11-06 20:24:10 +0100 |
---|---|---|
committer | mjarkk <mkopenga@gmail.com> | 2018-11-06 20:24:10 +0100 |
commit | ad77ac639eab9799cccdacbf02cd40a2c54a20a1 (patch) | |
tree | 0cb151fac687dea0880ace2aefaae5dae15e5085 /pkg/commands/os.go | |
parent | cf1e9f79b1d1f7faad5c2ccff4536936b10f3e19 (diff) |
Working new lines in live pty output
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r-- | pkg/commands/os.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 8a36d9851..ab545a00b 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -87,8 +87,9 @@ func (c *OSCommand) DetectUnamePass(command string, ask func(string) string) err return "" }) if err != nil { - if errorCode := err.Error(); strings.Contains("exit status 128", errorCode) { - errMessage = "exit status 128" + if strings.Contains("exit status 128", err.Error()) { + // errMessage = "exit status 128" + errMessage = errMessage } return errors.New(errMessage) } |