perf[exec]: split command by space regex

This commit is contained in:
godotg
2024-05-07 11:21:28 +08:00
parent 9fbac93a6f
commit c3bb8d01b0
@@ -275,7 +275,8 @@ public abstract class OSUtils {
Process process = null;
InputStream inputStream = null;
try {
process = new ProcessBuilder(command.split(" "))
var commandSplits = command.split(StringUtils.SPACE_REGEX);
process = new ProcessBuilder(commandSplits)
.redirectErrorStream(true)
.directory(wd)
.start();