diff --git a/bml.sh b/bml.sh index 9e5160c..1a7d2a6 100755 --- a/bml.sh +++ b/bml.sh @@ -25,6 +25,6 @@ lightgreen=`tput setaf 10` yellow=`tput setaf 11` reset=`tput sgr0` -#source osdetect.sh 2>/dev/null +source osdetect.sh source readpass.sh diff --git a/login.sh b/login.sh index 8d8a54d..a47c104 100644 --- a/login.sh +++ b/login.sh @@ -13,7 +13,15 @@ if [ "$LOGIN" = "0" ] elif [ "$LOGIN" = "20" ] then echo "${red}Account Locked!${reset}" - exit + echo "${lightred}Please reset password and login again.${reset}" + echo "" + if [ "$MAC" = "true" ] + then + open https://www.bankofmaldives.com.mv/internetbanking/forgot_password + else + xdg-open https://www.bankofmaldives.com.mv/internetbanking/forgot_password + fi + source readpass.sh elif [ "$LOGIN" = "2" ] then source readpass.sh diff --git a/osdetect.sh b/osdetect.sh index 9a31097..fac30b9 100644 --- a/osdetect.sh +++ b/osdetect.sh @@ -2,12 +2,14 @@ if [ "uname -r | grep -oE microsoft" = "microsoft" ] then - echo "${red}WSL Not Supported!${reset}" 1>&2 - exit + WSL=true + #echo "${red}WSL Not Supported!${reset}" 1>&2 + #exit elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ] then - echo "${red}MacOS Not Supported!${reset}" 1>&2 - exit + #echo "${red}MacOS Not Supported!${reset}" 1>&2 + #exit + MAC=true else : fi