packer/plugin: Don't wrap bytesBuffer in bufio, fixes GH-10

This commit is contained in:
Mitchell Hashimoto 2013-05-08 13:02:21 -07:00
parent 286f0aa91c
commit abb51ebb35
2 changed files with 1 additions and 6 deletions

View File

@ -11,8 +11,6 @@ import (
)
func main() {
log.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
commands := map[string]string {
"build": "packer-build",
}

View File

@ -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