1
0
mirror of https://github.com/go-task/task.git synced 2025-01-26 05:27:15 +02:00

execext: fix sh

This commit is contained in:
Andrey Nering 2017-08-05 14:20:44 -03:00
parent 0f24fd593e
commit e67792177d

View File

@ -39,12 +39,14 @@ func RunCommand(opts *RunCommandOptions) error {
r := interp.Runner{
Context: opts.Context,
Node: p,
Dir: opts.Dir,
Env: opts.Env,
Stdin: opts.Stdin,
Stdout: opts.Stdout,
Stderr: opts.Stderr,
}
return r.Run()
if err = r.Reset(); err != nil {
return err
}
return r.Run(p)
}