#!/bin/bash #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' BML_RESETPASS='https://www.bankofmaldives.com.mv/internetbanking/forgot_password' COOKIE=~/.cache/bml-cli/cookie CREDENTIALS=~/.config/bml-cli/.env cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 #Setting terminal output colors red=`tput setaf 1` #errorred=`tput setaf 196` #validgreen=`tput setaf 82` green=`tput setaf 46` brown=`tput setaf 3` blue=`tput setaf 4` pink=`tput setaf 5` cyan=`tput setaf 39` gray=`tput setaf 7` darkgray=`tput setaf 8` lightred=`tput setaf 9` lightgreen=`tput setaf 10` yellow=`tput setaf 11` reset=`tput sgr0` source osdetect.sh source readpass.sh