mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
collaborative posix test (#672)
* collaborative posix test * fix after review
This commit is contained in:
@@ -198,7 +198,19 @@ func CommandHandler(res http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
}
|
||||
}
|
||||
raw := false
|
||||
if r, ok := body["raw"].(bool); ok {
|
||||
raw = r
|
||||
}
|
||||
|
||||
exitCode, output := opencloud.RunCommand(command, stdIn)
|
||||
var exitCode int
|
||||
var output string
|
||||
|
||||
|
||||
if raw {
|
||||
exitCode, output = opencloud.RunRawCommand(command, stdIn)
|
||||
} else {
|
||||
exitCode, output = opencloud.RunCommand(command, stdIn)
|
||||
}
|
||||
sendCmdResponse(res, exitCode, output)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user