sys - amend RunInteractiveCmd
This commit is contained in:
parent
39fdda840c
commit
65a41f6873
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user