Commit 958fbdce
958fbdced618Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
Fix exec behavior
Details
- Commit
- 958fbdced618
- Parent
- 064a3709333e
pkg/template/extra.gomodifiedView file
@@ -70,7 +70,7 @@
7070
wg.Add(1)7171
go writeCommandInput(stdin, input, wg)7272
73-
var output bytes.Buffer73+
output := &bytes.Buffer{}7474
wg.Add(1)7575
go getCommandOutput(cmd, output, wg)7676
@@ -102,7 +102,7 @@
102102
}103103
}104104
105-
func getCommandOutput(cmd *exec.Cmd, output bytes.Buffer, wg *parallel.WaitGroup) {105+
func getCommandOutput(cmd *exec.Cmd, output *bytes.Buffer, wg *parallel.WaitGroup) {106106
defer wg.Done()107107
108108
bs, err := cmd.Output()