From 129272a69553df0465d58fd354882c1a55bc3694 Mon Sep 17 00:00:00 2001 From: Jack'lul Date: Mon, 9 Sep 2024 18:37:17 +0200 Subject: [PATCH] Fix wrong message being displayed while waiting for DNS Signed-off-by: Jack'lul --- gravity.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 1ac0e282..7ab3243c 100755 --- a/gravity.sh +++ b/gravity.sh @@ -304,7 +304,8 @@ gravity_CheckDNSResolutionAvailable() { echo -e " ${CROSS} DNS resolution is currently unavailable" fi - echo -e " ${INFO} Waiting until DNS resolution is available..." + str="Waiting until DNS resolution is available..." + echo -ne " ${INFO} ${str}" until getent hosts github.com &> /dev/null; do # Append one dot for each second waiting str="${str}."