Fix build recipe when include is empty
This commit is contained in:
parent
5306461128
commit
d9eafd8109
1 changed files with 1 additions and 1 deletions
2
Justfile
2
Justfile
|
@ -36,7 +36,7 @@ _parse_combos:
|
||||||
_parse_targets $expr:
|
_parse_targets $expr:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
attrs="[.board, .shield]"
|
attrs="[.board, .shield]"
|
||||||
filter="(($attrs | map(. // [.]) | combinations), (.include[] | $attrs)) | join(\",\")"
|
filter="(($attrs | map(. // [.]) | combinations), ((.include // {})[] | $attrs)) | join(\",\")"
|
||||||
echo "$(yq -r "$filter" build.yaml | grep -v "^," | grep -i "${expr/#all/.*}")"
|
echo "$(yq -r "$filter" build.yaml | grep -v "^," | grep -i "${expr/#all/.*}")"
|
||||||
|
|
||||||
# build firmware for single board & shield combination
|
# build firmware for single board & shield combination
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue