|
@ -133,12 +133,11 @@ func (p *Plugin) Exec() error { |
|
|
for _, c := range commands { |
|
|
for _, c := range commands { |
|
|
c.Stdout = os.Stdout |
|
|
c.Stdout = os.Stdout |
|
|
c.Stderr = os.Stderr |
|
|
c.Stderr = os.Stderr |
|
|
|
|
|
c.Env = os.Environ() |
|
|
|
|
|
|
|
|
err := c.Run() |
|
|
err := c.Run() |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
logrus.WithFields(logrus.Fields{ |
|
|
return err |
|
|
"error": err, |
|
|
|
|
|
}).Fatal("Failed to execute a command") |
|
|
|
|
|
} |
|
|
} |
|
|
logrus.Debug("Command completed successfully") |
|
|
logrus.Debug("Command completed successfully") |
|
|
} |
|
|
} |
|
|