Skip to content

Commit 7f3d7ce

Browse files
committed
chore: fixup targets for build_index
1 parent f140b5e commit 7f3d7ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/test/keyboards/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function zipsource() {
3636
}
3737

3838
function build_index() {
39+
local active_targets=($*)
3940
cat << EOF > index.html
4041
<!DOCTYPE html>
4142
<html>
@@ -48,7 +49,7 @@ function build_index() {
4849
<ul>
4950
EOF
5051

51-
for TARGET in "${targets[@]}"; do
52+
for TARGET in "${active_targets[@]}"; do
5253
if builder_has_option --zip-source; then
5354
echo " <li><a href='$TARGET/build/$TARGET.kmp'>$TARGET.kmp</a> (<a href='$TARGET/${TARGET}_source.zip'>source</a>)</li>" >> index.html
5455
else
@@ -87,7 +88,7 @@ function build() {
8788
fi
8889

8990
if builder_has_option --index; then
90-
build_index
91+
build_index "${active_targets[@]}"
9192
fi
9293
}
9394

0 commit comments

Comments
 (0)