This commit is contained in:
simonzhangsz committed 2023-08-18 12:34:31 +08:00
1 parent beeca26863
commit abeaca30b7
1 file changed
+1 -1
+1 -1
View File
@@ -438,7 +438,7 @@ func RunShellCommand(mml *MmlCommand, omcMmlVar *MmlVar, outputJson *dborm.MmlOu
} }
} }
cmd := exec.Command("sh", "-c", command) cmd := exec.Command("sh", "-c", command)
out, err := cmd.CombinedOutput() out, err := cmd.Output()
log.Tracef("Exec output: %v", string(out)) log.Tracef("Exec output: %v", string(out))
if err != nil { if err != nil {
log.Error("exe cmd error: ", err) log.Error("exe cmd error: ", err)