Commit abb51ebb authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

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

parent 286f0aa9
......@@ -11,8 +11,6 @@ import (
)
func main() {
log.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
commands := map[string]string {
"build": "packer-build",
}
......
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment