Skip to content

Commit 1cb4776

Browse files
committed
split cmd
1 parent 11d3485 commit 1cb4776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/opendota/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void run()
184184

185185
public static String shellExec(String cmdCommand) throws IOException {
186186
final StringBuilder stringBuilder = new StringBuilder();
187-
String[] cmdArr = { cmdCommand };
187+
String[] cmdArr = cmdCommand.split(" ");
188188
final Process process = Runtime.getRuntime().exec(cmdArr, null, null);
189189
final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
190190
String line;

0 commit comments

Comments
 (0)