diff --git a/script/script.go b/script/script.go index 36e909d..788e33c 100644 --- a/script/script.go +++ b/script/script.go @@ -74,7 +74,7 @@ func (sender *Sender) SendEvents(events notifier.EventsData, contact notifier.Co c := exec.Command(scriptFile, args[1:]...) var scriptOutput bytes.Buffer - c.Stdin = strings.NewReader(string(scriptJSON)) + c.Stdin = bytes.NewReader(scriptJSON) c.Stdout = &scriptOutput log.Debugf("Executing script: %s", scriptFile) err = c.Run()