diff --git a/agent/util_other.go b/agent/util_other.go index 47e3e1e67..c911c261c 100644 --- a/agent/util_other.go +++ b/agent/util_other.go @@ -7,7 +7,6 @@ import ( "os/exec" ) - // ExecScript returns a command to execute a script func ExecScript(script string) (*exec.Cmd, error) { shell := "/bin/sh" diff --git a/agent/util_windows.go b/agent/util_windows.go index da280d37d..9ec95bac4 100644 --- a/agent/util_windows.go +++ b/agent/util_windows.go @@ -15,7 +15,7 @@ func ExecScript(script string) (*exec.Cmd, error) { if other := os.Getenv("SHELL"); other != "" { shell = other } - script = "\"" + script + "\""; + script = "\"" + script + "\"" cmd := exec.Command(shell, "/C", script) cmd.SysProcAttr = &syscall.SysProcAttr{ CmdLine: strings.Join(cmd.Args, " "),