From 65a41f6873ad748f0a4c22bbd4519e0d68874090 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 7 Nov 2023 02:14:31 +0100 Subject: [PATCH] sys - amend RunInteractiveCmd --- sys/sys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys.go b/sys/sys.go index e76b876..16e7d01 100644 --- a/sys/sys.go +++ b/sys/sys.go @@ -59,7 +59,7 @@ func ManageStatusCmd(cmd *exec.Cmd, err error) int { 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) icmd := exec.Command("bash", "-c", cmd) icmd.Stdin = os.Stdin