summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-21 22:00:12 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-21 22:00:12 +0100
commite66935bb42350bb6880e97e12c188b7885e14549 (patch)
tree20d8750963fa29b7e0b63b2cf8631a6e8cb13109
parentadded one letter support (diff)
downloadshort-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.tar
short-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.tar.gz
short-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.tar.bz2
short-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.tar.lz
short-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.tar.xz
short-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.tar.zst
short-domain-finder-e66935bb42350bb6880e97e12c188b7885e14549.zip
Diffstat (limited to '')
-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[@]}")