From 36b927614d5fd222f8857374ee82b3b64df2fe1e Mon Sep 17 00:00:00 2001 From: Max Makarov Date: Tue, 20 Feb 2024 22:07:51 +0300 Subject: [PATCH] Give up making attemps to test domain in case of an error --- blockcheck.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blockcheck.sh b/blockcheck.sh index e3edb1a..991c97d 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -452,6 +452,9 @@ curl_test() continue } code=$? + if [ $code != 0 ]; then + break + fi done if [ $code = 254 ]; then echo "UNAVAILABLE"