sys - amend RunInteractiveCmd

This commit is contained in:
Mahdi Abu Yasmine 2023-11-07 02:14:31 +01:00
parent 39fdda840c
commit 65a41f6873

View File

@ -59,7 +59,7 @@ func ManageStatusCmd(cmd *exec.Cmd, err error) int {
return -1 return -1
} }
func RunInteractiveCmd(cmd string, withStderr bool, buffers ...io.Writer) int { func RunInteractiveCmd(cmd string, withStderr bool, buffers ...*bytes.Buffer) int {
// fmt.Printf(" == go before command : %s\n", cmd) // fmt.Printf(" == go before command : %s\n", cmd)
icmd := exec.Command("bash", "-c", cmd) icmd := exec.Command("bash", "-c", cmd)
icmd.Stdin = os.Stdin icmd.Stdin = os.Stdin