Update dns_wts.sh

This commit is contained in:
LukasWRN 2025-05-26 13:33:40 +02:00 committed by GitHub
parent f459849452
commit 2a62f8af8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}