Skip to content
Myr

Fix compilation error of Windows binary

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 6ae085f · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:src/util/util_windows.go+4 added-3 removed
1 unmodified line
23package util45import (6 "fmt"7 "os"8 "os/exec"9 "syscall"10)
7 unmodified lines
18// ignored on Windows.19func ExecCommandWith(_shell string, command string) *exec.Cmd {20 cmd := exec.Command("cmd")21 cmd.SysProcAttr = &syscall.SysProcAttr{21 HideWindow: false,22 CmdLine: fmt.Sprintf(` /s /c "%s"`, command),23 CreationFlags: 0,22 HideWindow: false,23 CmdLine: fmt.Sprintf(` /s /c "%s"`, command),24 CreationFlags: 0,25 }26 return cmd27}28
14 unmodified lines