fix array index reference

This commit is contained in:
Matthew Saunders Brown 2024-02-12 10:46:49 -08:00
parent 82422fdd84
commit debeb16646

View File

@ -27,8 +27,8 @@ if [[ -z $zone ]]; then
fi fi
SEARCH=($(/usr/local/bin/vdns-zone-lst.sh -q $zone)) SEARCH=($(/usr/local/bin/vdns-zone-lst.sh -q $zone))
if [[ ${#SEARCH[@]} = 1 ]]; then if [[ ${#SEARCH[@]} = 2 ]]; then
if [[ "${SEARCH[0]}" = $zone ]]; then if [[ "${SEARCH[1]}" = $zone ]]; then
echo true echo true
exit 0 exit 0
fi fi