Specify where bash is

This commit is contained in:
business-goose 2022-03-21 20:45:17 +00:00
parent c693373364
commit 6a06c7183e

View file

@ -21,7 +21,7 @@ public class Command_updatetfm extends FreedomCommand {
String directory = new File(path).getParent();
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);
ProcessBuilder proc = new ProcessBuilder(command);
proc.redirectErrorStream(true);