Commit fdda64f4 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

provisioner/shell: Trim whitespace on output

parent 684df67c
......@@ -10,6 +10,7 @@ import (
"io"
"log"
"os"
"strings"
"time"
)
......@@ -90,9 +91,9 @@ OutputLoop:
for {
select {
case output := <-stderrChan:
ui.Say(output)
ui.Say(strings.TrimSpace(output))
case output := <-stdoutChan:
ui.Say(output)
ui.Say(strings.TrimSpace(output))
case exitStatus := <-exitChan:
log.Printf("shell provisioner exited with status %d", exitStatus)
break OutputLoop
......
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