termux-tools: export SHELL variable on login (#2632)

This commit is contained in:
Leonid Pliushch 2018-07-14 01:02:50 +03:00 committed by Fredrik Fornwall
parent 5376c248da
commit 01e27ce4f8
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -5,11 +5,11 @@ if [ $# = 0 ] && [ -f $PREFIX/etc/motd ] && [ ! -f ~/.hushlogin ]; then
fi
if [ -G ~/.termux/shell ]; then
SHELL="`realpath ~/.termux/shell`"
export SHELL="`realpath ~/.termux/shell`"
else
for file in $PREFIX/bin/bash $PREFIX/bin/sh /system/bin/sh; do
if [ -x $file ]; then
SHELL=$file
export SHELL=$file
break
fi
done