Skip to content

Commit 2794ae1

Browse files
author
mritd
committed
fix(exec util): fix Stderr no msg
fix Stderr no msg Signed-off-by: mritd <[email protected]>
1 parent dfb4c3d commit 2794ae1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/util/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ func MustExec(name string, arg ...string) {
8787

8888
func MustExecRtOut(name string, arg ...string) string {
8989
cmd := exec.Command(name, arg...)
90+
cmd.Stdin = os.Stdin
91+
cmd.Stderr = os.Stderr
9092
b, err := cmd.Output()
9193
if err != nil {
9294
fmt.Print(err)

0 commit comments

Comments
 (0)