packer/plugin: Don't wrap bytesBuffer in bufio, fixes GH-10
This commit is contained in:
parent
286f0aa91c
commit
abb51ebb35
|
@ -11,8 +11,6 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
log.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
|
||||
|
||||
commands := map[string]string {
|
||||
"build": "packer-build",
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package plugin
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"errors"
|
||||
"io"
|
||||
|
@ -152,9 +151,7 @@ func (c *client) Kill() {
|
|||
<-done
|
||||
}
|
||||
|
||||
func (c *client) logStderr(r io.Reader) {
|
||||
buf := bufio.NewReader(r)
|
||||
|
||||
func (c *client) logStderr(buf *bytes.Buffer) {
|
||||
for done := false; !done; {
|
||||
if c.Exited() {
|
||||
done = true
|
||||
|
|
Loading…
Reference in New Issue