quit on error

This commit is contained in:
Shihaam Abdul Rahman 2021-05-14 18:23:30 +05:00
parent 919572220a
commit 9d9e9828db

View File

@ -18,21 +18,26 @@ elif [ "$LOGIN" = "2" ]
then then
echo 'Your username or password is incorrect.' echo 'Your username or password is incorrect.'
echo 'Please check .env to see if theyre entered correctly.' echo 'Please check .env to see if theyre entered correctly.'
:
elif [ "$LOGIN" = "20" ] elif [ "$LOGIN" = "20" ]
then then
echo 'Your account is locked!' echo 'Your account is locked!'
echo 'Reset password from "https://www.bankofmaldives.com.mv/internetbanking/forgot_password"' echo 'Reset password from "https://www.bankofmaldives.com.mv/internetbanking/forgot_password"'
:
elif ["$LOGIN" = ""] elif ["$LOGIN" = ""]
then then
if [ $(curl-s https://www.bankofmaldives.com.mv/) = "error code: 1020" ] if [ $(curl-s https://www.bankofmaldives.com.mv/) = "error code: 1020" ]
then then
echo "Your IP is blocked from CF for DoS attack" echo "Your IP is blocked from CF for DoS attack"
echo "Increase delay and try again later" echo "Increase delay and try again later"
:
else else
: :
fi fi
else else
echo 'Something went wrong..' echo 'Something went wrong..'
echo 'exiting..'
exit
fi fi
CHECKDIFF1=$(echo $HISTORY | wc -c) # check intial and previous history CHECKDIFF1=$(echo $HISTORY | wc -c) # check intial and previous history