Cleans up some go fmt issues.

This commit is contained in:
James Phillips 2017-08-08 21:52:50 -07:00
parent acd3050112
commit cb618918b3
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
2 changed files with 1 additions and 2 deletions

View File

@ -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"

View File

@ -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, " "),