diff --git a/bin/vdns-zone-ext.sh b/bin/vdns-zone-ext.sh index e5f5242..22f8d3d 100755 --- a/bin/vdns-zone-ext.sh +++ b/bin/vdns-zone-ext.sh @@ -27,8 +27,8 @@ if [[ -z $zone ]]; then fi SEARCH=($(/usr/local/bin/vdns-zone-lst.sh -q $zone)) -if [[ ${#SEARCH[@]} = 1 ]]; then - if [[ "${SEARCH[0]}" = $zone ]]; then +if [[ ${#SEARCH[@]} = 2 ]]; then + if [[ "${SEARCH[1]}" = $zone ]]; then echo true exit 0 fi