12 func shellRun(line string) (string, error) {
13 shell := os.Getenv("SHELL")
14 b, err := exec.Command(shell, "-c", line).Output()
16 if eerr, ok := err.(*exec.ExitError); ok {
19 return "", errors.New(err.Error() + ":" + string(b))
21 return strings.TrimSpace(string(b)), nil