Function gravity_CheckDNSResolutionAvailable() should return 0 if DNS resolution is available (#6240)

This commit is contained in:
yubiuser 2025-05-21 07:44:04 +02:00 committed by GitHub
commit 5aadc5f475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -356,7 +356,7 @@ gravity_CheckDNSResolutionAvailable() {
if getent hosts github.com &> /dev/null; then if getent hosts github.com &> /dev/null; then
# If we reach this point, DNS resolution is available # If we reach this point, DNS resolution is available
echo -e "${OVER} ${TICK} DNS resolution is available" echo -e "${OVER} ${TICK} DNS resolution is available"
break return 0
fi fi
# Append one dot for each second waiting # Append one dot for each second waiting
echo -ne "." echo -ne "."