bml-cli/bml.sh
Shihaam Abdul Rahman 83f2236eed installer - beta
2021-05-03 22:19:12 +05:00

35 lines
810 B
Bash
Executable File

#!/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
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
#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