tungo: debug exec.Command output

This commit is contained in:
ginuerzh
2025-08-09 16:34:04 +08:00
parent 2b9f795972
commit 4eb006f1b0
14 changed files with 330 additions and 205 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ import (
"fmt"
"io"
"net"
"os"
"os/exec"
"strings"
"sync"
@@ -326,8 +327,8 @@ func (s *defaultService) execCmd(cmd string) error {
return errors.New("invalid command")
}
c := exec.Command(ss[0], ss[1:]...)
// c.Stdout = os.Stdout
// c.Stderr = os.Stderr
c.Stdout = os.Stdout
c.Stderr = os.Stderr
return c.Run()
}