From 8252a45dfd506a9c51621e9a6fb41e7d1247803e Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Mon, 25 Mar 2024 13:07:31 -0500 Subject: [PATCH] fix(script): fixed yq --- .github/download-boxes.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/download-boxes.sh b/.github/download-boxes.sh index cc9abf0..c426668 100755 --- a/.github/download-boxes.sh +++ b/.github/download-boxes.sh @@ -10,11 +10,7 @@ GIT_ROOT=$(git rev-parse --show-toplevel) PROVIDER=virtualbox # Read all boxes for all platforms from the "molecule.yml" files -all_boxes=$(cat "${GIT_ROOT}"/molecule/*/molecule.yml | - yq eval '.platforms[].box' | # Read the "box" property of each node under "platforms" - grep --invert-match --regexp=--- | # Filter out file separators - sort | - uniq) +all_boxes=$(yq e 'map(.platforms[].box) | select(type == "string") | unique | join("\n")' "${GIT_ROOT}"/molecule/*/molecule.yml) # Read the boxes that are currently present on the system (for the current provider) present_boxes=$(