summaryrefslogtreecommitdiffstats
path: root/shortdomains.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shortdomains.sh')
-rwxr-xr-x[-rw-r--r--]shortdomains.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/shortdomains.sh b/shortdomains.sh
index 64314d3..debd643 100644..100755
--- a/shortdomains.sh
+++ b/shortdomains.sh
@@ -79,10 +79,11 @@ fi
if [[ $8 == true ]]; then
list=`echo {{a..z},{0..9}}`
newtlds=()
+ tldcount=${#tlds[@]}
for (( iter=0; iter<$tldcount; iter++));
do
- if [[ oneltr[$iter] == 1 ]]; then
- newtlds+=($tlds[$iter])
+ if [[ ${oneltr[iter]} == 1 ]]; then
+ newtlds+=(${tlds[iter]})
fi
done
tlds=("${newtlds[@]}")