save password location with warning
This commit is contained in:
parent
88867b0935
commit
6e9d3cdd41
7
bml.sh
7
bml.sh
@ -1,12 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
|
||||
#Setting intial variables
|
||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||
#Making cookie and credentials dir
|
||||
mkdir -p ~/.config/bml-cli/
|
||||
mkdir -p ~/.cache/bml-cli/
|
||||
|
||||
#Setting intial variables
|
||||
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
||||
COOKIE=~/.cache/bml-cli/cookie
|
||||
CREDENTIALS=~/.config/bml-cli/.env
|
||||
|
||||
|
@ -7,11 +7,13 @@ then
|
||||
read -p 'Do you want to save login? [y/N] ' SAVE_LOGIN
|
||||
if [ "$SAVE_LOGIN" = "Y" ]
|
||||
then
|
||||
echo "Username and Password is saved in ${lightred}PAIN TEXT${reset} in $CREDENTIALS"
|
||||
echo "BML_USERNAME='${BML_USERNAME}'" > $CREDENTIALS
|
||||
echo "BML_PASSWORD='${BML_PASSWORD}'" >> $CREDENTIALS
|
||||
|
||||
elif [ "$SAVE_LOGIN" = "y" ]
|
||||
then
|
||||
echo "Username and Password is saved in ${lightred}PAIN TEXT${reset} in $CREDENTIALS"
|
||||
echo "BML_USERNAME='${BML_USERNAME}'" > $CREDENTIALS
|
||||
echo "BML_PASSWORD='${BML_PASSWORD}'" >> $CREDENTIALS
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user