File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 88 "bytes"
99 "context"
1010 "os/exec"
11+ "strings"
1112
1213 "github.com/gdt-dev/gdt/api"
1314 gdtcontext "github.com/gdt-dev/gdt/context"
@@ -79,15 +80,21 @@ func (a *Action) Do(
7980 debug .Println (ctx , "exec: error reading from stdout: %s" , err )
8081 }
8182 if outbuf .Len () > 0 {
82- debug .Println (ctx , "exec: stdout: %s" , outbuf .String ())
83+ debug .Println (
84+ ctx , "exec: stdout: %s" ,
85+ strings .TrimSpace (outbuf .String ()),
86+ )
8387 }
8488 }
8589 if errbuf != nil {
8690 if _ , err = errbuf .ReadFrom (errpipe ); err != nil {
8791 debug .Println (ctx , "exec: error reading from stderr: %s" , err )
8892 }
8993 if errbuf .Len () > 0 {
90- debug .Println (ctx , "exec: stderr: %s" , errbuf .String ())
94+ debug .Println (
95+ ctx , "exec: stderr: %s" ,
96+ strings .TrimSpace (errbuf .String ()),
97+ )
9198 }
9299 }
93100
You can’t perform that action at this time.
0 commit comments