diff --git a/dnsapi/dns_ispconfig.sh b/dnsapi/dns_ispconfig.sh index 2816ec0e..512771d6 100755 --- a/dnsapi/dns_ispconfig.sh +++ b/dnsapi/dns_ispconfig.sh @@ -104,7 +104,7 @@ _ISPC_addTxt () { curResult=$(curl -k --data "${curData}" "${ISPC_Api}?dns_txt_add") record_id=$(echo $curResult | _egrep_o "\"response.*" | cut -d ':' -f 2) record_id=${record_id:1:-2} - case ${record_id} in = false + case ${record_id} in ''|*[!0-9]*) _err "Record ID is not numeric. Aborting" ;; *) _info "Successfully retrieved Record ID"; record_data="$record_data $record_id" ;; # Make space seperated string of record IDs for later removal.