25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Fix INTRUDER and add padding to second text line

b41ce8828c (r47461104)
This commit is contained in:
Badlop 2021-03-08 18:50:13 +01:00
parent 75a4e23996
commit 9525978f26

View File

@ -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
}