From 26108b4c6adb13a23377c6803af9338b155dbd9a Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 31 Aug 2021 21:57:45 +0200 Subject: [PATCH] Better text for captchas --- captcha/captcha.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/captcha/captcha.sh b/captcha/captcha.sh index 84a89d8..1b4f2f7 100755 --- a/captcha/captcha.sh +++ b/captcha/captcha.sh @@ -124,19 +124,19 @@ RC=`seq 1 2 | sort -R | head -n 1` # 1 = - | 2 = + if (( $RC == 1 ));then FALSENBR=`seq $TARGET 10 | sort -R | head -n 1` RESUME=$(( FALSENBR - TARGET )) - INSTRUCTIONS1="Calculez: $FALSENBR moins $RESUME. Copiez..." + INSTRUCTIONS1="Calculez: ${DIGIT[FALSENBR]} moins ${DIGIT[RESUME]} et copiez" NAME="CALCULM-$FALSENBR-$RESUME" else FALSENBR=`seq 1 4 | sort -R | head -n 1` if (( $FALSENBR <= $TARGET ));then RESULT=$(( TARGET + FALSENBR )) RESUME=$(( TARGET - FALSENBR )) - INSTRUCTIONS1="Calculez: ${DIGIT[FALSENBR]} + ${DIGIT[RESUME]} et copiez" + INSTRUCTIONS1="Calculez: ${DIGIT[FALSENBR]} plus ${DIGIT[RESUME]} et copiez" NAME="CALCULP-$FALSENBR-$RESUME" else RESULT=$(( FALSENBR - TARGET )) RESUME=$(( TARGET - RESULT )) - INSTRUCTIONS1="Calculez: ${DIGIT[RESULT]} + ${DIGIT[RESUME]} et copiez" + INSTRUCTIONS1="Calculez: ${DIGIT[RESULT]} plus ${DIGIT[RESUME]} et copiez" NAME="CALCULP-$RESULT-$RESUME" fi fi