fix(SystemUtils) : 移除 redirectInput(ProcessBuilder.Redirect.DISCARD) (#5325)
This commit is contained in:
@@ -82,7 +82,6 @@ public final class SystemUtils {
|
|||||||
|
|
||||||
public static <T> T run(List<String> command, ExceptionalFunction<InputStream, T, ?> convert) throws Exception {
|
public static <T> T run(List<String> command, ExceptionalFunction<InputStream, T, ?> convert) throws Exception {
|
||||||
Process process = new ProcessBuilder(command)
|
Process process = new ProcessBuilder(command)
|
||||||
.redirectInput(ProcessBuilder.Redirect.DISCARD)
|
|
||||||
.redirectError(ProcessBuilder.Redirect.DISCARD)
|
.redirectError(ProcessBuilder.Redirect.DISCARD)
|
||||||
.start();
|
.start();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user