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