Skip to content

Commit d065c96

Browse files
committed
Fix bash-based word count validation for steering elections
1 parent 1b3a4e9 commit d065c96

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)