From a600f681d6ad61e296b29cd9437e729600f43f42 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 8 Aug 2017 21:52:50 -0700 Subject: [PATCH] Cleans up some go fmt issues. --- agent/util_other.go | 1 - agent/util_windows.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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, " "),