mirror of https://github.com/status-im/consul.git
Cleans up some go fmt issues.
This commit is contained in:
parent
acd3050112
commit
cb618918b3
|
@ -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