From e66935bb42350bb6880e97e12c188b7885e14549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 21 Mar 2020 22:00:12 +0100 Subject: fixes --- shortdomains.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 shortdomains.sh (limited to 'shortdomains.sh') diff --git a/shortdomains.sh b/shortdomains.sh old mode 100644 new mode 100755 index 64314d3..debd643 --- 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[@]}") -- cgit v1.2.3