From debeb16646e79e2dc2a7177d5ff8a17311a0d8b0 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 12 Feb 2024 10:46:49 -0800 Subject: [PATCH] fix array index reference --- bin/vdns-zone-ext.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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