mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:04:57 +00:00
Specify where bash is
This commit is contained in:
parent
c693373364
commit
6a06c7183e
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ public class Command_updatetfm extends FreedomCommand {
|
||||||
String directory = new File(path).getParent();
|
String directory = new File(path).getParent();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String command = String.format("bash -c \"cd %s; %s\"", directory, path);
|
String command = String.format("/bin/bash -c \"cd %s; %s\"", directory, path);
|
||||||
System.out.println(command);
|
System.out.println(command);
|
||||||
ProcessBuilder proc = new ProcessBuilder(command);
|
ProcessBuilder proc = new ProcessBuilder(command);
|
||||||
proc.redirectErrorStream(true);
|
proc.redirectErrorStream(true);
|
||||||
|
|
Loading…
Reference in a new issue