mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
21 lines
489 B
Diff
21 lines
489 B
Diff
--- a/src/commands.c
|
|
+++ b/src/commands.c
|
|
@@ -795,12 +795,14 @@
|
|
tmp = getenv("PAGER");
|
|
if (tmp != NULL) {
|
|
return tmp;
|
|
+#ifndef __ANDROID__
|
|
} else if (stat("/usr/bin/less", &st) == 0) {
|
|
return "/usr/bin/less";
|
|
- } else if (stat("/bin/less", &st) == 0) {
|
|
- return "/bin/less";
|
|
+#endif
|
|
+ } else if (stat("@TERMUX_PREFIX@/bin/less", &st) == 0) {
|
|
+ return "@TERMUX_PREFIX@/bin/less";
|
|
} else {
|
|
- return "/bin/more";
|
|
+ return "@TERMUX_PREFIX@/bin/more";
|
|
}
|
|
}
|
|
|