.getName()

This commit is contained in:
business-goose 2022-03-21 21:04:52 +00:00
parent 4b9350ea26
commit 27033345ba

View file

@ -22,7 +22,7 @@ public class Command_updatetfm extends FreedomCommand {
String directory = file.getParent(); String directory = file.getParent();
try { 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); System.out.println(command);
ProcessBuilder proc = new ProcessBuilder("/bin/bash", "-c", command); ProcessBuilder proc = new ProcessBuilder("/bin/bash", "-c", command);
proc.redirectErrorStream(true); proc.redirectErrorStream(true);