Fix one bug.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
pull/597/head
Oleksandr Andriienko 2021-02-12 20:52:16 +02:00
parent 5a81b47dc0
commit 74ebb5e88c
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ func NewRunnable() Runnable {
func (p *Process) Run(name string, args ...string) error {
p.cmd = exec.Command(name, args...)
p.stderr.Reset()
p.stdout.Reset()
p.cmd.Stdout = &p.stdout
p.cmd.Stderr = &p.stderr
return p.cmd.Run()