summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-10-15 18:32:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-10-15 18:32:59 +0900
commit438f6c96cdc56e1bb3cc12daa16ae08b2ccae18b (patch)
tree448b75716708d1fa707b88a75b552c39f4c5d562
parent6ae085f9745777dab85a38ff137c0e762bfab083 (diff)
Fix compilation error of Windows binary
-rw-r--r--src/util/util_windows.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/util_windows.go b/src/util/util_windows.go
index 86409fde..67b70318 100644
--- a/src/util/util_windows.go
+++ b/src/util/util_windows.go
@@ -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
}