Cleans up some go fmt issues.
This commit is contained in:
parent
4daba5ddd5
commit
a600f681d6
|
@ -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"
|
||||
|
|
|
@ -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…
Reference in New Issue