ecj: Switch to working mirror
[termux-packages] / packages / termux-tools / login
index f01e293..9da9aac 100755 (executable)
@@ -1,6 +1,6 @@
 #!/data/data/com.termux/files/usr/bin/sh
 
-if [ -f $PREFIX/etc/motd ] && [ ! -f ~/.hushlogin ]; then
+if [ $# = 0 ] && [ -f $PREFIX/etc/motd ] && [ ! -f ~/.hushlogin ]; then
        cat $PREFIX/etc/motd
 fi
 
@@ -19,5 +19,4 @@ if [ -f $PREFIX/lib/libtermux-exec.so ]; then
        export LD_PRELOAD=$PREFIX/lib/libtermux-exec.so
 fi
 
-exec "$SHELL" -l
-
+exec "$SHELL" -l "$@"