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