mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
beam/examples/beamsh: 'exec' adds 'fromcmd' field to its output
Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
parent
7534f7a34b
commit
3a2b31a30b
1 changed files with 2 additions and 2 deletions
|
@ -634,8 +634,8 @@ func GetHandler(name string) Handler {
|
|||
}
|
||||
cmd.Stderr = errW
|
||||
cmd.Stdin = os.Stdin
|
||||
beam.Send(out, data.Empty().Set("cmd", "log", "stdout").Bytes(), outR)
|
||||
beam.Send(out, data.Empty().Set("cmd", "log", "stderr").Bytes(), errR)
|
||||
beam.Send(out, data.Empty().Set("cmd", "log", "stdout").Set("fromcmd", args...).Bytes(), outR)
|
||||
beam.Send(out, data.Empty().Set("cmd", "log", "stderr").Set("fromcmd", args...).Bytes(), errR)
|
||||
execErr := cmd.Run()
|
||||
var status string
|
||||
if execErr != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue