From 4d9a10147aa7f07fff6879c0d83e4e2fda050c93 Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Mon, 9 Nov 2020 03:52:35 -0500 Subject: [PATCH] Split backup command by space (#3762) Splits command sent to ProcessBuilder by spaces. Fixes backup commands with arguments Fixes #3759 --- Essentials/src/com/earth2me/essentials/Backup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/Backup.java b/Essentials/src/com/earth2me/essentials/Backup.java index 96d683d74..101e7d25e 100644 --- a/Essentials/src/com/earth2me/essentials/Backup.java +++ b/Essentials/src/com/earth2me/essentials/Backup.java @@ -88,7 +88,7 @@ public class Backup implements Runnable { ess.runTaskAsynchronously(() -> { try { - final ProcessBuilder childBuilder = new ProcessBuilder(command); + final ProcessBuilder childBuilder = new ProcessBuilder(command.split(" ")); childBuilder.redirectErrorStream(true); childBuilder.directory(ess.getDataFolder().getParentFile().getParentFile()); final Process child = childBuilder.start();