Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-03-08 20:50:13 +0300
committerBadlop <badlop@process-one.net>2021-03-12 22:50:41 +0300
commit9525978f268a617896d67115da3859f5c3fcbe63 (patch)
treefeabcb8287a0b39f07ad27cce2fc0a4c7c901bf9 /tools
parent75a4e239963b081675713e7c3b7ac12436e893a8 (diff)
Fix INTRUDER and add padding to second text line
https://github.com/processone/ejabberd/commit/b41ce8828c579f06a33ca93a7af4fd5984997e16#r47461104
Diffstat (limited to 'tools')
-rwxr-xr-xtools/captcha-ng.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/captcha-ng.sh b/tools/captcha-ng.sh
index 08ded9af6..cbcb95407 100755
--- a/tools/captcha-ng.sh
+++ b/tools/captcha-ng.sh
@@ -60,7 +60,7 @@ then
return
fi
-for num in "${NUMBERS[@]}"
+for num in ${NUMBERS}
do
get_random
R=$((R % 100))
@@ -76,9 +76,9 @@ get_random
R=$((R % 100))
if [[ $R -lt 50 ]]; then
- printf "Type %s by\n deleting the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
+ printf "Type %s by\n deleting the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
else
- printf "Enter %s by\n removing the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
+ printf "Enter %s by\n removing the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
fi
}
@@ -100,13 +100,13 @@ get_random
R=$((R % 100))
if [[ $R -lt 25 ]]; then
- printf "Type the result\n of %s + %s" "$A" "$B"
+ printf "Type the result\n of %s + %s" "$A" "$B"
elif [[ $R -lt 50 ]]; then
- printf "SUMx\n %s and %s" "$A" "$B"
+ printf "SUMx\n %s and %s" "$A" "$B"
elif [[ $R -lt 75 ]]; then
- printf "Add\n %s and %s" "$A" "$B"
+ printf "Add\n %s and %s" "$A" "$B"
else
- printf "Enter the result\n of %s + %s" "$A" "$B"
+ printf "Enter the result\n of %s + %s" "$A" "$B"
fi
}