Skip to content

Commit

Permalink
Merge pull request #792 from rsteube/actionexeccommand-log
Browse files Browse the repository at this point in the history
ActionExecCommandE: added log
  • Loading branch information
rsteube authored Jun 24, 2023
2 parents c91bcd7 + d390718 commit 7f814e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions defaultActions.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func ActionExecCommandE(name string, arg ...string) func(f func(output []byte, e
cmd := c.Command(name, arg...)
cmd.Stdout = &stdout
cmd.Stderr = &stderr
LOG.Printf("executing %#v", cmd.String())
if err := cmd.Run(); err != nil {
if exitErr, ok := err.(*exec.ExitError); ok {
exitErr.Stderr = stderr.Bytes() // seems this needs to be set manually due to stdout being collected?
Expand Down

0 comments on commit 7f814e9

Please sign in to comment.