From 27033345bae02d42437f2f8d85ea80a52f684b9b Mon Sep 17 00:00:00 2001 From: business-goose Date: Mon, 21 Mar 2022 21:04:52 +0000 Subject: [PATCH] .getName() --- .../TotalFreedomMod/commands/Command_updatetfm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java index 1e98c1f..f200590 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_updatetfm.java @@ -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);