mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 20:16:07 +00:00
perf[exec]: split command by space regex
This commit is contained in:
1 parent
9fbac93a6f
commit
c3bb8d01b0
1 file changed
+2
-1
@@ -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