From 6dd65cf66892082a48489b07ef1bb80445b5a378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Mon, 15 Jun 2026 22:53:32 +0200 Subject: [PATCH] other:fix helper script --- other/helpScripts/referendumTypeBrutforce.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/other/helpScripts/referendumTypeBrutforce.sh b/other/helpScripts/referendumTypeBrutforce.sh index 092f556..f36b6e0 100755 --- a/other/helpScripts/referendumTypeBrutforce.sh +++ b/other/helpScripts/referendumTypeBrutforce.sh @@ -2,7 +2,10 @@ # https://politics.ld.admin.ch/political-rights/referendum/typ/NUMBER # returns sometimes a referendum type. Gotta catch them all ! echo "Until which number you want to check?" read number -for i {0...number} + +i=0 +while [ "$i" -le "$number" ] do curl "https://politics.ld.admin.ch/political-rights/referendum/typ/$i" + i=$((i + 1)) done