Skip to content

Commit 56b44dd

Browse files
authored
Merge pull request #8602 from cblecker/fix-election-count
Fix bash-based word count validation for steering elections
2 parents 1b3a4e9 + d065c96 commit 56b44dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hack/verify-steering-election.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
set -o errexit
1818
set -o nounset
1919
set -o pipefail
20-
2120
shopt -s extglob
2221

23-
# exclude bios before 2021 since some of them have more than 300 words
24-
STEERING_ELECTION_BIOS="$(pwd)/events/elections/!(2017|2018|2019|2020)/candidate-*.md"
22+
export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
23+
24+
# exclude bios before 2025 since some of them have more than 300 words
25+
STEERING_ELECTION_BIOS="${KUBE_ROOT}/elections/steering/!(2017|2018|2019|2020|2021|2022|2023|2024)/candidate-*.md"
2526

2627
invalid_bios=0
2728
break=$(printf "=%.0s" $(seq 1 68))

0 commit comments

Comments
 (0)