Skip to content
Permalink
Browse files

handle reader exiting early

  • Loading branch information...
BenTheElder committed Jun 12, 2019
1 parent 153f08b commit f1b67bb52fe20605f159761465ad488acce976a8
Showing with 1 addition and 0 deletions.
  1. +1 −0 pkg/exec/exec.go
@@ -107,6 +107,7 @@ func RunWithStdoutReader(cmd Cmd, readerFunc func(io.Reader) error) error {
errChan := make(chan error, 1)
go func() {
errChan <- readerFunc(pr)
pr.Close()
}()

err = cmd.Run()

0 comments on commit f1b67bb

Please sign in to comment.
You can’t perform that action at this time.