Update dns_curanet.sh

This commit is contained in:
Peter Lindegaard Hansen
2025-11-03 16:18:15 +01:00
committed by GitHub
parent a1f4f9ddb7
commit b7c8601540

View File

@@ -154,7 +154,7 @@ _get_root() {
export _H3="Authorization: Bearer $CURANET_ACCESS_TOKEN"
response="$(_get "$CURANET_REST_URL/$h/Records" "" "")"
if [ ! "$(echo "$response" | _egrep_o "Entity not found")" ]; then
if [ ! "$(echo "$response" | _egrep_o "Entity not found|Bad Request")" ]; then
_domain=$h
return 0
fi