Fix compilation error of Windows binary

This commit is contained in:
Junegunn Choi 2017-10-15 18:32:59 +09:00
parent 6ae085f974
commit 438f6c96cd
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -3,6 +3,7 @@
package util
import (
"fmt"
"os"
"os/exec"
"syscall"
@ -18,9 +19,9 @@ func ExecCommand(command string) *exec.Cmd {
func ExecCommandWith(_shell string, command string) *exec.Cmd {
cmd := exec.Command("cmd")
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: false,
CmdLine: fmt.Sprintf(` /s /c "%s"`, command),
CreationFlags: 0,
HideWindow: false,
CmdLine: fmt.Sprintf(` /s /c "%s"`, command),
CreationFlags: 0,
}
return cmd
}