From 0c874100180751b213129552ad1f3b4c8fd35e3b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 9 Jan 2023 01:47:59 -0500 Subject: [PATCH] Using ProcessBuilding instead of exec() --- src/discord/handlers/DevRequestHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/handlers/DevRequestHandler.java b/src/discord/handlers/DevRequestHandler.java index aec38f01..41677cd7 100644 --- a/src/discord/handlers/DevRequestHandler.java +++ b/src/discord/handlers/DevRequestHandler.java @@ -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) {