From 438f6c96cdc56e1bb3cc12daa16ae08b2ccae18b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 Oct 2017 18:32:59 +0900 Subject: [PATCH] Fix compilation error of Windows binary --- src/util/util_windows.go | 7 ++++--- 1 file 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 }