bml-cli/settings-menu.sh

35 lines
619 B
Bash
Raw Normal View History

2021-05-01 14:07:30 +05:00
echo ""
echo "Settings"
echo ""
echo "1 - Logout and Delete saved credentials"
echo "2 - Change Password"
echo "3 - Go Back"
echo ""
printf 'Please Input: '
read -r SETTINGS
if [ "$SETTINGS" = "1" ]
then
source logout.sh
elif [ "$SETTINGS" = "2" ]
then
source changepassword.sh
2021-05-04 00:35:44 +05:00
elif [ "$SETTINGS" = "3" ] || [ "$SETTINGS" = "back" ]
2021-05-01 14:07:30 +05:00
then
source mainmenu.sh
elif [ "$SETTINGS" = "clear" ]
then
sleep 0.2
clear
source settings-menu.sh
elif [ "$SETTINGS" = "exit" ]
then
echo "Cleaning up.."
rm $COOKIE
sleep 0.2
exit
else
echo ${red}Invalid input:${yellow} $SETTINGS ${reset} 1>&2
2021-05-04 00:35:44 +05:00
source settings-menu.sh
2021-05-01 14:07:30 +05:00
fi