From 65c8a7e4ff0881fb062586e30374e9193097678e Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sun, 25 Apr 2021 20:18:35 +0500 Subject: [PATCH] red - attempt to fix pass02 --- bml.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bml.sh b/bml.sh index 4bb1bf7..e07f1b9 100755 --- a/bml.sh +++ b/bml.sh @@ -1,18 +1,20 @@ #!/bin/bash - -source .env >> /dev/null - BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api' COOKIE=/tmp/bmlcookie red=`tput setaf 1` green=`tput setaf 2` reset=`tput sgr0` +source .env 2> /dev/null if [ "$BML_USERNAME" = "" ] then + echo "${red}Credentials not found in .env file${reset}" + echo "" read -p 'Username: ' BML_USERNAME read -s -p 'Password: ' BML_PASSWORD + echo "" + echo "" else : fi