Add print statement for debugging

This commit is contained in:
business-goose 2022-03-21 20:38:58 +00:00
parent 33a34cfa56
commit 61fa2063e5

View file

@ -21,7 +21,9 @@ public class Command_updatetfm extends FreedomCommand {
String directory = new File(path).getParent(); String directory = new File(path).getParent();
try { try {
Process uptimeProc = Runtime.getRuntime().exec(String.format("bash -c \"cd %s; %s\"", directory, path)); String command = String.format("bash -c \"cd %s; %s\"", directory, path);
System.out.println(command);
Process uptimeProc = Runtime.getRuntime().exec(command);
uptimeProc.waitFor(); uptimeProc.waitFor();
playerMsg("Updated TFM! Reloading..."); playerMsg("Updated TFM! Reloading...");
Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false); Utilities.adminAction(sender.getName(), "Update successful, reloading TFM...", false);