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