Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type Cmd struct {
Name string
Args []string
Env []string
Dir string
Stdout chan string // streaming STDOUT if enabled, else nil (see Options)
Stderr chan string // streaming STDERR if enabled, else nil (see Options)
*sync.Mutex
Expand Down Expand Up @@ -305,6 +306,7 @@ func (c *Cmd) run() {
// Set the runtime environment for the command as per os/exec.Cmd. If Env
// is nil, use the current process' environment.
cmd.Env = c.Env
cmd.Dir = c.Dir

// //////////////////////////////////////////////////////////////////////
// Start command
Expand Down