Browse Source

Using ProcessBuilding instead of exec()

master
MagicBot 2 years ago
parent
commit
0c87410018
  1. 2
      src/discord/handlers/DevRequestHandler.java

2
src/discord/handlers/DevRequestHandler.java

@ -58,7 +58,7 @@ public class DevRequestHandler { @@ -58,7 +58,7 @@ public class DevRequestHandler {
if (commandString.isEmpty() == false) {
processBuilder = new ProcessBuilder("/bin/sh", "-c", commandString, commandArgument);
processBuilder = new ProcessBuilder("/bin/sh", "-c", commandString + " " + commandArgument);
try {
processBuilder.start();
} catch (IOException e) {

Loading…
Cancel
Save