termux-tools: Work around for when termux-exec is broken

This commit is contained in:
its-pointless 2018-02-21 10:08:15 +11:00 committed by Fredrik Fornwall
parent a15973a99d
commit 4c95eb0d93
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/ TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux" TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_VERSION=0.52 TERMUX_PKG_VERSION=0.53
TERMUX_PKG_PLATFORM_INDEPENDENT=yes TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_ESSENTIAL=yes TERMUX_PKG_ESSENTIAL=yes
TERMUX_PKG_DEPENDS="termux-am" TERMUX_PKG_DEPENDS="termux-am"

View File

@ -17,6 +17,7 @@ fi
if [ -f $PREFIX/lib/libtermux-exec.so ]; then if [ -f $PREFIX/lib/libtermux-exec.so ]; then
export LD_PRELOAD=$PREFIX/lib/libtermux-exec.so export LD_PRELOAD=$PREFIX/lib/libtermux-exec.so
$SHELL -c "busybox true" > /dev/null 2>&1 || unset LD_PRELOAD
fi fi
exec "$SHELL" -l "$@" exec "$SHELL" -l "$@"