This commit is contained in:
2023-08-18 12:34:31 +08:00
parent beeca26863
commit abeaca30b7

View File

@@ -438,7 +438,7 @@ func RunShellCommand(mml *MmlCommand, omcMmlVar *MmlVar, outputJson *dborm.MmlOu
}
}
cmd := exec.Command("sh", "-c", command)
out, err := cmd.CombinedOutput()
out, err := cmd.Output()
log.Tracef("Exec output: %v", string(out))
if err != nil {
log.Error("exe cmd error: ", err)