attempt to fix pass02
This commit is contained in:
parent
b96b7baf7f
commit
df78a9b2bf
16
bml.sh
16
bml.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source .env
|
||||
source .env >> /dev/null
|
||||
|
||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||
COOKIE=/tmp/bmlcookie
|
||||
@ -8,13 +8,15 @@ red=`tput setaf 1`
|
||||
green=`tput setaf 2`
|
||||
reset=`tput sgr0`
|
||||
|
||||
#printf 'Username: '
|
||||
#read -r BML_USERNAME
|
||||
#printf 'Password: '
|
||||
#read -sp BML_PASSWORD
|
||||
|
||||
#read -p 'Username: ' BML_USERNAME
|
||||
#read -s -p 'Password: ' BML_PASSWORD
|
||||
if [ "$BML_USERNAME" = "" ]
|
||||
then
|
||||
read -p 'Username: ' BML_USERNAME
|
||||
read -s -p 'Password: ' BML_PASSWORD
|
||||
else
|
||||
:
|
||||
fi
|
||||
|
||||
|
||||
LOGIN=$(curl -s -c $COOKIE $BML_URL/login \
|
||||
--data-raw username=$BML_USERNAME \
|
||||
|
Loading…
x
Reference in New Issue
Block a user