Browse Source

Cleans up some go fmt issues.

pull/3375/head
James Phillips 7 years ago
parent
commit
cb618918b3
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
  1. 1
      agent/util_other.go
  2. 2
      agent/util_windows.go

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

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

Loading…
Cancel
Save