fix: tempfile(?)

This commit is contained in:
Ace Eldeib
2019-07-19 17:38:24 -07:00
parent af29855802
commit c2cc93a009

View File

@@ -160,6 +160,9 @@ func (p *ExecPlugin) invokePlugin(input []byte) ([]byte, error) {
if err != nil {
return nil, err
}
// Cleanup plugin config file after execution
defer os.Remove(args[0])
cmd := exec.Command(p.path, args...)
cmd.Env = p.getEnv()
cmd.Stdin = bytes.NewReader(input)