Skip to content

Commit

Permalink
Update check.go
Browse files Browse the repository at this point in the history
change exec command output to include stderr, in order to tests stuff like here aquasecurity#25 (comment)
  • Loading branch information
yoavrotems authored Oct 16, 2019
1 parent de62def commit 6d0e65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (audit Audit) Execute(customConfig ...interface{}) (result string, errMessa
return result, errMessage, WARN
}

res, err := exec.Command("sh", "-c", string(audit) ).Output()
res, err := exec.Command("sh", "-c", string(audit) ).CombinedOutput()

if err != nil {
errMessage = err.Error()
Expand Down

0 comments on commit 6d0e65c

Please sign in to comment.