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-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
|
|
|
|
|
|
|
#Setting terminal output colors
|
2021-04-28 19:15:19 +05:00
|
|
|
red=`tput setaf 1`
|
|
|
|
green=`tput setaf 2`
|
2021-04-28 19:18:59 +05:00
|
|
|
brown=`tput setaf 3`
|
|
|
|
blue=`tput setaf 4`
|
|
|
|
pink=`tput setaf 5`
|
|
|
|
cyan=`tput setaf 6`
|
|
|
|
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-04-29 14:59:19 +05:00
|
|
|
#run osdetect.sh, throw error into void if file not found
|
|
|
|
source osdetect.sh 2>/dev/null
|
2021-04-29 00:42:32 +05:00
|
|
|
|
2021-04-28 06:24:11 +05:00
|
|
|
source readpass.sh
|