7 echo "usage: $SCRIPTNAME [-s shell]"
8 echo "Change the login shell."
12 mkdir -p $HOME/.termux
14 if test -x $PREFIX/bin/$NEW_SHELL; then
15 ln -f -s $PREFIX/bin/$NEW_SHELL $HOME/.termux/shell
16 elif test -x $NEW_SHELL; then
17 ln -f -s $NEW_SHELL $HOME/.termux/shell
19 echo "Error: $NEW_SHELL is not an executable file"
23 O=`getopt -l help -- hs: "$@"`
27 -h|--help) show_usage; exit 0;;
28 -s) set_shell $2; exit 0;;
30 *) echo Error; show_usage; exit 1;;
34 echo "Error: Specify shell with the -s flag"