Rebuild grpc and mosh after protobuf update
[termux-packages] / packages / termux-tools / chsh
index edc7abf..08bd02e 100755 (executable)
@@ -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