Skip to content
Snippets Groups Projects
Unverified Commit 438f6c96 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix compilation error of Windows binary

parent 6ae085f9
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment