mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-01 06:13:13 +00:00
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:
parent
ea4f5cf919
commit
4d9a10147a
|
@ -88,7 +88,7 @@ public class Backup implements Runnable {
|
||||||
|
|
||||||
ess.runTaskAsynchronously(() -> {
|
ess.runTaskAsynchronously(() -> {
|
||||||
try {
|
try {
|
||||||
final ProcessBuilder childBuilder = new ProcessBuilder(command);
|
final ProcessBuilder childBuilder = new ProcessBuilder(command.split(" "));
|
||||||
childBuilder.redirectErrorStream(true);
|
childBuilder.redirectErrorStream(true);
|
||||||
childBuilder.directory(ess.getDataFolder().getParentFile().getParentFile());
|
childBuilder.directory(ess.getDataFolder().getParentFile().getParentFile());
|
||||||
final Process child = childBuilder.start();
|
final Process child = childBuilder.start();
|
||||||
|
|
Loading…
Reference in a new issue