diff --git a/src/discord/handlers/DevRequestHandler.java b/src/discord/handlers/DevRequestHandler.java index 69e040cf..aec38f01 100644 --- a/src/discord/handlers/DevRequestHandler.java +++ b/src/discord/handlers/DevRequestHandler.java @@ -41,16 +41,16 @@ public class DevRequestHandler { switch (serverCommand) { case "build" : - commandString = "mbdevbuild.sh"; + commandString = "./mbdevbuild.sh"; break; case "restart": - commandString = "mbdevrestart.sh"; + commandString = "./mbdevrestart.sh"; break; case "debug": - commandString = "mbdevdebug.sh"; + commandString = "./mbdevdebug.sh"; break; case "shutdown": - commandString = "mbdevkill.sh"; + commandString = "./mbdevkill.sh"; break; default: break; @@ -58,7 +58,7 @@ public class DevRequestHandler { if (commandString.isEmpty() == false) { - processBuilder = new ProcessBuilder("sh", "-c", commandString, commandArgument); + processBuilder = new ProcessBuilder("/bin/sh", "-c", commandString, commandArgument); try { processBuilder.start(); } catch (IOException e) {