File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ set -o pipefail
21
21
shopt -s extglob
22
22
23
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)/!(README|RESULTS|voters) .md"
24
+ STEERING_ELECTION_BIOS=" $( pwd) /events/elections/!(2017|2018|2019|2020)/candidate-* .md"
25
25
26
26
invalid_bios=0
27
27
break=$( printf " =%.0s" $( seq 1 68) )
28
28
29
29
for bio in ${STEERING_ELECTION_BIOS} ; do
30
30
[[ -f $bio ]] || continue
31
31
word_count=$( wc -w < " $bio " )
32
- if [[ ${word_count} -gt " 300 " ]]; then
32
+ if [[ ${word_count} -gt " 450 " ]]; then
33
33
echo " ${bio} has ${word_count} words."
34
34
invalid_bios=$(( invalid_bios+ 1 ))
35
35
fi
@@ -39,7 +39,7 @@ if [[ ${invalid_bios} -gt "0" ]]; then
39
39
echo " "
40
40
echo " ${break} "
41
41
echo " ${invalid_bios} invalid Steering Committee election bio(s) detected."
42
- echo " All bios must be limited to 300 words."
42
+ echo " Bios should be limited to around 300 words, excluding headers ."
43
43
echo " ${break} "
44
44
exit 1;
45
45
fi
You can’t perform that action at this time.
0 commit comments