red - attempt to fix pass02

This commit is contained in:
Shihaam Abdul Rahman 2021-04-25 20:18:35 +05:00
parent df78a9b2bf
commit 65c8a7e4ff

8
bml.sh
View File

@ -1,18 +1,20 @@
#!/bin/bash #!/bin/bash
source .env >> /dev/null
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api' BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
COOKIE=/tmp/bmlcookie COOKIE=/tmp/bmlcookie
red=`tput setaf 1` red=`tput setaf 1`
green=`tput setaf 2` green=`tput setaf 2`
reset=`tput sgr0` reset=`tput sgr0`
source .env 2> /dev/null
if [ "$BML_USERNAME" = "" ] if [ "$BML_USERNAME" = "" ]
then then
echo "${red}Credentials not found in .env file${reset}"
echo ""
read -p 'Username: ' BML_USERNAME read -p 'Username: ' BML_USERNAME
read -s -p 'Password: ' BML_PASSWORD read -s -p 'Password: ' BML_PASSWORD
echo ""
echo ""
else else
: :
fi fi