bml-cli/bml.sh
WhoIsFishie 284a35c427
Fixed WSL Bug
Typo in the script causes the program to crash when running on a WSL machine. 
the typo has now been commented out so it should work just fine
2021-04-29 01:43:09 +05:00

39 lines
702 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`
OS=$(uname -r | grep -oE microsoft)
if [ "$OS" = "microsoft" ]
then
#echo "${red}WSL Not Supported!${reset}"
#exit
else
:
fi
source readpass.sh