bml-cli/contactsmenu.sh
Shihaam Abdul Rahman 3908b5dde9 added adding contacts
2021-04-28 01:24:02 +05:00

35 lines
575 B
Bash

echo ""
echo "Contacts"
echo ""
echo "1 - List Contacts"
echo "2 - Add Contact"
echo "3 - Delete Conact"
echo "4 - Go back"
echo "5 - Exit"
echo ""
printf 'Please Input: '
read -r CONTATCS
if [ "$CONTATCS" = "1" ]
then
source listcontacts.sh
elif [ "$CONTATCS" = "2" ]
then
source addcontact-menu.sh
elif [ "$CONTATCS" = "3" ]
then
source delete contact.sh
elif [ "$CONTATCS" = "4" ]
then
source mainmenu.sh
elif [ "$CONTATCS" = "5" ]
then
rm $COOKIE
echo "Cleaning up.."
exit
else
clear
echo "${red}There was an error${reset}" 1>&2
source contactsmenu.sh
fi