fix array index reference
This commit is contained in:
parent
82422fdd84
commit
debeb16646
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user