bml-cli/mainmenu.sh
Shihaam Abdul Rahman 0f4be5a79d Making Modular?
2021-04-27 23:10:51 +05:00

41 lines
677 B
Bash
Executable File

echo "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