mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-11 10:39:13 +00:00
Split arguments
This commit is contained in:
parent
6a06c7183e
commit
e8b749cfdf
1 changed files with 2 additions and 2 deletions
|
@ -21,9 +21,9 @@ public class Command_updatetfm extends FreedomCommand {
|
|||
String directory = new File(path).getParent();
|
||||
|
||||
try {
|
||||
String command = String.format("/bin/bash -c \"cd %s; %s\"", directory, path);
|
||||
String command = String.format("\"cd %s; %s\"", directory, path);
|
||||
System.out.println(command);
|
||||
ProcessBuilder proc = new ProcessBuilder(command);
|
||||
ProcessBuilder proc = new ProcessBuilder("/bin/bash", "-c", command);
|
||||
proc.redirectErrorStream(true);
|
||||
Process process = proc.start();
|
||||
process.waitFor();
|
||||
|
|
Loading…
Reference in a new issue