diff --git a/packages/termux-tools/chsh b/packages/termux-tools/chsh index edc7abf31..08bd02e5e 100755 --- a/packages/termux-tools/chsh +++ b/packages/termux-tools/chsh @@ -8,6 +8,10 @@ show_usage () { } set_shell () { + if [ "$1" = login ]; then + echo "login is not a valid shell" + exit 1 + fi mkdir -p $HOME/.termux NEW_SHELL=$PREFIX/bin/$1 if test -x $NEW_SHELL -a ! -d $NEW_SHELL; then