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