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