bml-cli/bml.sh
Shihaam Abdul Rahman d3a0d06625 Modular OS Detection
2021-04-29 14:59:19 +05:00

30 lines
660 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'
COOKIE=~/.cache/bml-cli/cookie
CREDENTIALS=~/.config/bml-cli/.env
#Setting terminal output colors
red=`tput setaf 1`
green=`tput setaf 2`
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`
reset=`tput sgr0`
#run osdetect.sh, throw error into void if file not found
source osdetect.sh 2>/dev/null
source readpass.sh