executeCommand now returns stdout and stderr combined in output

This commit is contained in:
yo 2022-06-04 22:28:38 +02:00
parent e4fc9c3a6c
commit bc92f29900

View File

@ -182,9 +182,9 @@ func executeCommand(cmdline string) (string, error) {
cmd = append(cmd, cs...)
if len(cmd) > 1 {
out, err = exec.Command(cmd[0], cmd[1:]...).Output()
out, err = exec.Command(cmd[0], cmd[1:]...).CombinedOutput()
} else {
out, err = exec.Command(cmd[0]).Output()
out, err = exec.Command(cmd[0]).CombinedOutput()
}
return string(out), err