Fix compilation error of Windows binary
This commit is contained in:
parent
6ae085f974
commit
438f6c96cd
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user