From 82422fdd84cb2519494df6aa9f68a6364c907938 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 12 Feb 2024 10:46:31 -0800 Subject: [PATCH] fix header row --- bin/vdns-zone-lst.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/vdns-zone-lst.sh b/bin/vdns-zone-lst.sh index c42051c..31fc322 100755 --- a/bin/vdns-zone-lst.sh +++ b/bin/vdns-zone-lst.sh @@ -33,7 +33,8 @@ SEARCH=($(/usr/local/sbin/pdns-search.sh -q hostname=$hostname/$query -c)) # check for header row output, this indicates one or more results were found if [[ "${SEARCH[0]}" = "content,name,object_type,type,zone,zone_id" ]]; then - # remove header row + # echo header and remove header row + echo zone SEARCH=("${SEARCH[@]:1}") # check each row to verify data and output zone (domain) if it validates for ROW in "${SEARCH[@]}"; do