|
@ -115,8 +115,7 @@ _dns_cloudns_get_zone_name() { |
|
|
zoneForCheck=$(printf "%s" "$1" | cut -d . -f $i-100) |
|
|
zoneForCheck=$(printf "%s" "$1" | cut -d . -f $i-100) |
|
|
|
|
|
|
|
|
if [ -z "$zoneForCheck" ]; then |
|
|
if [ -z "$zoneForCheck" ]; then |
|
|
# missing zone |
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
_debug zoneForCheck $zoneForCheck |
|
|
_debug zoneForCheck $zoneForCheck |
|
@ -125,12 +124,12 @@ _dns_cloudns_get_zone_name() { |
|
|
|
|
|
|
|
|
if ! _contains "$response" "\"status\":\"Failed\""; then |
|
|
if ! _contains "$response" "\"status\":\"Failed\""; then |
|
|
echo $zoneForCheck |
|
|
echo $zoneForCheck |
|
|
return 0; |
|
|
|
|
|
|
|
|
return 0 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
i=$(expr $i + 1) |
|
|
i=$(expr $i + 1) |
|
|
done |
|
|
done |
|
|
return 1; |
|
|
|
|
|
|
|
|
return 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_dns_cloudns_get_record_id () { |
|
|
_dns_cloudns_get_record_id () { |
|
@ -154,5 +153,5 @@ _dns_cloudns_http_api_call () { |
|
|
|
|
|
|
|
|
_debug response "$response" |
|
|
_debug response "$response" |
|
|
|
|
|
|
|
|
return 1; |
|
|
|
|
|
|
|
|
return 1 |
|
|
} |
|
|
} |