bml-cli/mainmenu.sh
2021-04-28 01:46:14 +05:00

41 lines
682 B
Bash

echo "Main Menu"
echo ""
echo "1 - Accounts"
echo "2 - Transfer"
echo "3 - Contacts"
echo "4 - Activities"
echo "5 - Services"
echo "6 - Settings"
echo "7 - Exit"
echo ""
printf 'Please Input: '
read -r MENU
if [ "$MENU" = "1" ]
then
source accounts.sh
elif [ "$MENU" = "2" ]
then
source transfer.sh
elif [ "$MENU" = "3" ]
then
source contactsmenu.sh
elif [ "$MENU" = "4" ]
then
source activities.sh
elif [ "$MENU" = "5" ]
then
source services.sh
elif [ "$MENU" = "6" ]
then
source settingsmenu.sh
elif [ "$MENU" = "7" ]
then
rm $COOKIE
exit
else
echo "${red}There was an error${reset}" 1>&2
clear
source mainmenu.sh
fi