From 694895e71ac9c0dffd1dbc8bca3ec8c332ad3d01 Mon Sep 17 00:00:00 2001 From: CZECHIA-COM Date: Wed, 11 Mar 2026 07:51:10 +0100 Subject: [PATCH] Update dnsapi/dns_czechia.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- dnsapi/dns_czechia.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dnsapi/dns_czechia.sh b/dnsapi/dns_czechia.sh index 65a17ca6..67550946 100644 --- a/dnsapi/dns_czechia.sh +++ b/dnsapi/dns_czechia.sh @@ -71,7 +71,10 @@ dns_czechia_rm() { txtvalue="$2" _czechia_load_conf || return 1 _current_zone=$(_czechia_pick_zone "$fulldomain") - [ -z "$_current_zone" ] && return 1 + if [ -z "$_current_zone" ]; then + _err "No matching zone found for $fulldomain. Please check CZ_Zones configuration." + return 1 + fi _cz=$(printf "%s" "$_current_zone" | _lower_case | sed 's/ //g') _tk=$(printf "%s" "$CZ_AuthorizationToken" | sed 's/ //g') _url="$CZ_API_BASE/api/DNS/$_cz/TXT"