nano: fix shell path
This commit is contained in:
parent
0ab32db91f
commit
319aabcc11
@ -1,6 +1,7 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
|
||||
TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
|
||||
TERMUX_PKG_VERSION=2.9.8
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SHA256=07192c320b74c1fb78437021e9affa6a9d55b806ee012de601902392eaa03601
|
||||
TERMUX_PKG_SRCURL=https://www.nano-editor.org/dist/v${TERMUX_PKG_VERSION:0:3}/nano-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses"
|
||||
|
12
packages/nano/src-text.c.patch
Normal file
12
packages/nano/src-text.c.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr nano-2.9.8/src/text.c nano-2.9.8.mod/src/text.c
|
||||
--- nano-2.9.8/src/text.c 2018-06-02 11:20:07.000000000 +0300
|
||||
+++ nano-2.9.8.mod/src/text.c 2018-06-19 19:03:48.071389233 +0300
|
||||
@@ -1147,7 +1147,7 @@
|
||||
/* Check which shell to use. If none is specified, use /bin/sh. */
|
||||
shellenv = getenv("SHELL");
|
||||
if (shellenv == NULL)
|
||||
- shellenv = (char *) "/bin/sh";
|
||||
+ shellenv = (char *) "@TERMUX_PREFIX@/bin/sh";
|
||||
|
||||
/* Fork a child process to run the command in. */
|
||||
if ((pid = fork()) == 0) {
|
Loading…
Reference in New Issue
Block a user