From e26f1b0611cd3f10b1e75da3b55adfda7966323c Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Thu, 20 May 2021 09:10:40 +0500 Subject: [PATCH] fix termux ping --- bml-cli.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bml-cli.sh b/bml-cli.sh index 322f9c2..572d54e 100755 --- a/bml-cli.sh +++ b/bml-cli.sh @@ -60,7 +60,7 @@ initialize(){ } check_connection(){ - PING=$(ping www.bankofmaldives.com.mv -c 2 2> /dev/null | grep -oE 0%) + PING=$(ping -c 1 www.bankofmaldives.com.mv 2> /dev/null | grep -oE 0%) if [ "$PING" != "0%" ] then echo ${red}Check your connection and try again.${reset}