2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-10 13:10:44 +00:00

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