Skip to content

Commit

Permalink
webhook: fix for "failed to dump script file"
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Jul 25, 2017
1 parent 5fec87e commit 1b50082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/tsc/tsc.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (s *Script) runBash(e *Event) (err error) {

if err = cmd.Run(); err != nil {
// dump script for later troubleshooting
f, e := ioutil.TempFile("webhook", "debug")
f, e := ioutil.TempFile("", "webhook")
if e == nil {
_, e = io.Copy(f, bytes.NewReader(buf.Bytes()))
e = nonil(e, f.Close())
Expand Down

0 comments on commit 1b50082

Please sign in to comment.