bml-cli/readpass.sh

25 lines
452 B
Bash
Raw Normal View History

if [ -f $CREDENTIALS ]
then
source $CREDENTIALS
2021-04-28 07:15:26 +05:00
if [ "$LOGIN" = "2" ]
then
2021-04-28 07:15:26 +05:00
echo "${red}Password update required${reset}"
rm $CREDENTIALS 2> /dev/null
read -p 'Username: ' BML_USERNAME
read -s -p 'Password: ' BML_PASSWORD
echo ""
else
2021-04-28 07:15:26 +05:00
:
fi
elif [ ! -f $CREDENTIALS ]
then
2021-04-28 07:15:26 +05:00
echo "${red}Username or Password in correct${reset}"
read -p 'Username: ' BML_USERNAME
read -s -p 'Password: ' BML_PASSWORD
echo ""
else
:
fi
source login.sh