()
| 41 | } |
| 42 | |
| 43 | func (e *env) timeout() time.Duration { |
| 44 | if e.Timeout != 0 { |
| 45 | return e.Timeout |
| 46 | } |
| 47 | return 15 * time.Second |
| 48 | |
| 49 | } |
| 50 | func (e *env) Run(args ...string) (out, err []byte, exitCode int) { |
| 51 | outbuf := new(bytes.Buffer) |
| 52 | errbuf := new(bytes.Buffer) |