From d9eafd8109dcf055d4f315056383fb38ea4600d9 Mon Sep 17 00:00:00 2001 From: urob <978080+urob@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:08:38 -0400 Subject: [PATCH] Fix build recipe when include is empty --- Justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 61c959c..50ba461 100644 --- a/Justfile +++ b/Justfile @@ -36,7 +36,7 @@ _parse_combos: _parse_targets $expr: #!/usr/bin/env bash 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/.*}")" # build firmware for single board & shield combination