other:fix helper script

This commit is contained in:
2026-06-15 22:53:32 +02:00
parent 1280fda0d9
commit 6dd65cf668
+4 -1
View File
@@ -2,7 +2,10 @@
# https://politics.ld.admin.ch/political-rights/referendum/typ/NUMBER # returns sometimes a referendum type. Gotta catch them all ! # 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?" echo "Until which number you want to check?"
read number read number
for i {0...number}
i=0
while [ "$i" -le "$number" ]
do do
curl "https://politics.ld.admin.ch/political-rights/referendum/typ/$i" curl "https://politics.ld.admin.ch/political-rights/referendum/typ/$i"
i=$((i + 1))
done done