2021-04-25 14:59:31 +05:00
|
|
|
#!/bin/bash
|
2021-04-28 01:46:14 +05:00
|
|
|
|
2021-04-28 19:42:43 +05:00
|
|
|
#Making cookie and credentials dir
|
2021-04-28 19:32:47 +05:00
|
|
|
mkdir -p ~/.config/bml-cli/
|
|
|
|
mkdir -p ~/.cache/bml-cli/
|
|
|
|
|
2021-04-28 19:42:43 +05:00
|
|
|
#Setting intial variables
|
|
|
|
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
|
2021-05-01 04:36:27 +05:00
|
|
|
BML_RESETPASS='https://www.bankofmaldives.com.mv/internetbanking/forgot_password'
|
2021-04-28 19:32:47 +05:00
|
|
|
COOKIE=~/.cache/bml-cli/cookie
|
|
|
|
CREDENTIALS=~/.config/bml-cli/.env
|
2021-04-25 22:50:50 +05:00
|
|
|
|
2021-05-08 15:13:29 +05:00
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
|
2021-05-03 22:19:12 +05:00
|
|
|
|
2021-04-25 22:50:50 +05:00
|
|
|
#Setting terminal output colors
|
2021-04-30 22:36:48 +05:00
|
|
|
red=`tput setaf 1`
|
2021-04-30 22:11:56 +05:00
|
|
|
#errorred=`tput setaf 196`
|
|
|
|
#validgreen=`tput setaf 82`
|
|
|
|
green=`tput setaf 46`
|
2021-04-28 19:18:59 +05:00
|
|
|
brown=`tput setaf 3`
|
|
|
|
blue=`tput setaf 4`
|
|
|
|
pink=`tput setaf 5`
|
2021-04-30 22:11:56 +05:00
|
|
|
cyan=`tput setaf 39`
|
2021-04-28 19:18:59 +05:00
|
|
|
gray=`tput setaf 7`
|
|
|
|
darkgray=`tput setaf 8`
|
|
|
|
lightred=`tput setaf 9`
|
|
|
|
lightgreen=`tput setaf 10`
|
|
|
|
yellow=`tput setaf 11`
|
2021-04-28 19:15:19 +05:00
|
|
|
reset=`tput sgr0`
|
|
|
|
|
2021-05-01 01:20:37 +05:00
|
|
|
source osdetect.sh
|
2021-04-29 16:35:44 +05:00
|
|
|
|
2021-04-28 06:24:11 +05:00
|
|
|
source readpass.sh
|