bml-cli/welcome.sh
2021-04-28 06:24:11 +05:00

12 lines
356 B
Bash

#Requesting for User profile after login and regex to grap the Full name
NAME=$(curl -s -b $COOKIE $BML_URL/profile \
| awk -F 'fullname":"' '{print $2}' \
| cut -f1 -d '"')
#display a Welcome message with fullname
echo ""
echo ${green}Welcome ${reset}$NAME
#curl -s -b $COOKIE $BML_URL/userinfo
echo ""
source mainmenu.sh