move run up

This commit is contained in:
Brian Seymour 2021-01-14 18:46:21 -06:00
parent 20d659e5a6
commit d3361049f3
1 changed files with 2 additions and 2 deletions

View File

@ -162,6 +162,8 @@ func launch(request Inbound, res http.ResponseWriter) {
separate: &stderr,
}
err := cmd.Run()
stdout = strings.TrimSpace(stdout)
stderr = strings.TrimSpace(stderr)
combined = strings.TrimSpace(combined)
@ -178,8 +180,6 @@ func launch(request Inbound, res http.ResponseWriter) {
combined = combined[:65536]
}
err := cmd.Run()
// get the executing version of the language
execlang := request.Language