Skip to content

Commit

Permalink
don't print out cmd.run to stdout/stderr for now
Browse files Browse the repository at this point in the history
  • Loading branch information
taigrr committed Dec 29, 2021
1 parent f3372e2 commit 9812ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingredients/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func SRun(cmd CmdRun) (CmdRun, error) {

//TODO replace os.Stdout/err here with writes to websocket to get live returnable data
var stdoutBuf, stderrBuf bytes.Buffer
command.Stdout = io.MultiWriter(os.Stdout, &stdoutBuf)
command.Stderr = io.MultiWriter(os.Stderr, &stderrBuf)
command.Stdout = io.MultiWriter(&stdoutBuf) //, os.Stdout)
command.Stderr = io.MultiWriter(&stderrBuf) //, os.Stderr)
timer := time.Now()
err := command.Run()
cmd.Duration = time.Now().Sub(timer)
Expand Down

0 comments on commit 9812ef8

Please sign in to comment.