Split backup command by space (#3762)

Splits command sent to ProcessBuilder by spaces. Fixes backup commands with arguments

Fixes #3759
This commit is contained in:
Josh Roy 2020-11-09 03:52:35 -05:00 committed by GitHub
parent ea4f5cf919
commit 4d9a10147a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();