From caea62a0066f5d8104189b8d20cf7e1da309cc29 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 8 Jan 2021 22:08:40 +0100 Subject: [PATCH] Captcha : corrected a typo --- captcha/captcha.sh | 6 +++--- captcha/experimental.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/captcha/captcha.sh b/captcha/captcha.sh index 5e8da07..c2aab5e 100755 --- a/captcha/captcha.sh +++ b/captcha/captcha.sh @@ -95,7 +95,7 @@ INTRUS() SOMME() { get_random - RA=$(($RA % 100)) + RA=$(($R % 100)) if [[ $(($INPUT % 2)) -eq 0 ]]; then A=$(($INPUT - $RA)) @@ -129,7 +129,7 @@ RAND_INDEX=$(($R % ${#TRANSFORMATIONS[@]})) convert -size 300x60 xc:none -pointsize 20 \ \( -clone 0 -fill black \ -stroke black -strokewidth 1 \ - -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \ + -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \ -roll +$ROLL_X+0 \ -wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \ -roll -$ROLL_X+0 \) \ @@ -138,7 +138,7 @@ convert -size 300x60 xc:none -pointsize 20 \ convert -size 300x60 xc:none -pointsize 20 \ \( -clone 0 -fill black \ -stroke black -strokewidth 1 \ - -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \ + -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \ -roll +$ROLL_X+0 \ -wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \ -roll -$ROLL_X+0 \) \ diff --git a/captcha/experimental.sh b/captcha/experimental.sh index 5e8da07..c2aab5e 100755 --- a/captcha/experimental.sh +++ b/captcha/experimental.sh @@ -95,7 +95,7 @@ INTRUS() SOMME() { get_random - RA=$(($RA % 100)) + RA=$(($R % 100)) if [[ $(($INPUT % 2)) -eq 0 ]]; then A=$(($INPUT - $RA)) @@ -129,7 +129,7 @@ RAND_INDEX=$(($R % ${#TRANSFORMATIONS[@]})) convert -size 300x60 xc:none -pointsize 20 \ \( -clone 0 -fill black \ -stroke black -strokewidth 1 \ - -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \ + -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \ -roll +$ROLL_X+0 \ -wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \ -roll -$ROLL_X+0 \) \ @@ -138,7 +138,7 @@ convert -size 300x60 xc:none -pointsize 20 \ convert -size 300x60 xc:none -pointsize 20 \ \( -clone 0 -fill black \ -stroke black -strokewidth 1 \ - -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \ + -annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \ -roll +$ROLL_X+0 \ -wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \ -roll -$ROLL_X+0 \) \