From 2a62f8af8ff3a24ae6a8d9a3e71eafc0698405c5 Mon Sep 17 00:00:00 2001 From: LukasWRN <127308232+LukasWRN@users.noreply.github.com> Date: Mon, 26 May 2025 13:33:40 +0200 Subject: [PATCH] Update dns_wts.sh --- dnsapi/dns_wts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnsapi/dns_wts.sh b/dnsapi/dns_wts.sh index 5ee5fe75..d7fb4551 100644 --- a/dnsapi/dns_wts.sh +++ b/dnsapi/dns_wts.sh @@ -88,12 +88,13 @@ dns_wts_rm() { _info "TXT record has been successfully deleted." return 0 else - if $WTS_API_Token == 0: + if [ -z "$TMP_RecordID" ]; then _err "Errors happened during deleting the TXT record, because the temporary record-id from creation is not set." return 1 else: _err "Errors happened during deleting the TXT record, response=$_response" return 1 + fi fi }