mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-17 02:24:00 +00:00
perf[exec]: split command by space regex
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user