From 2db7ca5cc0df770458dd9a19acb623f020bc5317 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 31 Aug 2021 12:49:23 +0200 Subject: [PATCH] Syntax error? --- captcha/experimental.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/captcha/experimental.sh b/captcha/experimental.sh index ec794f5..70e7549 100755 --- a/captcha/experimental.sh +++ b/captcha/experimental.sh @@ -150,8 +150,8 @@ INSTRUCTIONS2="...en remplaçant chaque X par la somme" # **************************************************************************** MODULES=(CALCUL NOTIN REPLACE REVERSE) -NMODULES=#MODULES[@] -RMODULE=`seq 0 $((NMODULES-1)) | sort -R | head -n 1` +NMODULES= +RMODULE=`seq 0 $(( ${#MODULES[@]} - 1)) | sort -R | head -n 1` #eval "${MODULES[RMODULE]}" TEXT="$NEWINPUT"