Skip to content

Commit

Permalink
chore: fixup targets for build_index
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdurdin committed Sep 16, 2023
1 parent f140b5e commit 7f3d7ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/test/keyboards/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function zipsource() {
}

function build_index() {
local active_targets=($*)
cat << EOF > index.html
<!DOCTYPE html>
<html>
Expand All @@ -48,7 +49,7 @@ function build_index() {
<ul>
EOF

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

if builder_has_option --index; then
build_index
build_index "${active_targets[@]}"
fi
}

Expand Down

0 comments on commit 7f3d7ce

Please sign in to comment.