summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/nameserver_autogen/bind_tld_zonefile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nameserver_autogen/bind_tld_zonefile.sh b/scripts/nameserver_autogen/bind_tld_zonefile.sh
index fe78a45..8ead9ae 100755
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh
+++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh
@@ -66,7 +66,7 @@ for TLD in $TLDS;do
echo '@ IN A 127.0.0.1' >> "$ANO_ZONEFILE".tmp
for name in *;do
- if [ -e "$name/ns/" ];then
+ if [ -d "$name/ns" ];then
for server in "$name"/ns/*;do
[ -e "$server" ] || continue
fqserver=`cut -d/ -f3- <<< "$server"`