add log-counter go plugin

This commit is contained in:
David Ashpole
2018-06-20 15:55:19 -07:00
parent 2f915ecf29
commit bf730e9c63
9 changed files with 364 additions and 3 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func (p *Plugin) run(rule cpmtypes.CustomRule) (exitStatus cpmtypes.Status, outp
}
defer cancel()
cmd := exec.CommandContext(ctx, rule.Path)
cmd := exec.CommandContext(ctx, rule.Path, rule.Args...)
stdout, err := cmd.Output()
if err != nil {
if _, ok := err.(*exec.ExitError); !ok {