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
source .env >> /dev/null
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
COOKIE=/tmp/bmlcookie
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
source .env 2> /dev/null
if [ "$BML_USERNAME" = "" ]
then
echo "${red}Credentials not found in .env file${reset}"
echo ""
read -p 'Username: ' BML_USERNAME
read -s -p 'Password: ' BML_PASSWORD
echo ""
echo ""
else
:
fi