Cleans up some go fmt issues.
This commit is contained in:
parent
4daba5ddd5
commit
a600f681d6
|
@ -7,7 +7,6 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
// ExecScript returns a command to execute a script
|
// ExecScript returns a command to execute a script
|
||||||
func ExecScript(script string) (*exec.Cmd, error) {
|
func ExecScript(script string) (*exec.Cmd, error) {
|
||||||
shell := "/bin/sh"
|
shell := "/bin/sh"
|
||||||
|
|
|
@ -15,7 +15,7 @@ func ExecScript(script string) (*exec.Cmd, error) {
|
||||||
if other := os.Getenv("SHELL"); other != "" {
|
if other := os.Getenv("SHELL"); other != "" {
|
||||||
shell = other
|
shell = other
|
||||||
}
|
}
|
||||||
script = "\"" + script + "\"";
|
script = "\"" + script + "\""
|
||||||
cmd := exec.Command(shell, "/C", script)
|
cmd := exec.Command(shell, "/C", script)
|
||||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||||
CmdLine: strings.Join(cmd.Args, " "),
|
CmdLine: strings.Join(cmd.Args, " "),
|
||||||
|
|
Loading…
Reference in New Issue