Fixing assignment of vars

pull/271/head
Nex 9 years ago
parent 4f7834af25
commit 5481d93989

@ -88,12 +88,12 @@ func (p *Process) Exe() (string, error) {
var cmd []string var cmd []string
cmd := []string{"-p", p.Pid, "-Fn", "|", "awk", "'NR==3{print}'", "|", "sed", "'s/n\\//\\//'"} cmd := []string{"-p", p.Pid, "-Fn", "|", "awk", "'NR==3{print}'", "|", "sed", "'s/n\\//\\//'"}
out, err = invoke.Command(bin, cmd...) out, err := invoke.Command(bin, cmd...)
if err != nil { if err != nil {
return "", err return "", err
} }
ret = strings.TrimSpace(out) ret := strings.TrimSpace(out)
return ret, nil return ret, nil
} }

Loading…
Cancel
Save