mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(terminal): invalid shell path in TermuxUtils.shellExists
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ public class TermuxShellUtils {
|
||||
|
||||
public static boolean shellExists(boolean failsafe) {
|
||||
for (String shellBinary : UnixShellEnvironment.LOGIN_SHELL_BINARIES) {
|
||||
File shellFile = new File(Environment.PREFIX, shellBinary);
|
||||
File shellFile = new File(Environment.BIN_DIR, shellBinary);
|
||||
if (shellFile.canExecute()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user