fix(script): fixed yq

This commit is contained in:
Timothy Stewart 2024-03-25 13:07:31 -05:00
parent c99f098c2e
commit 8252a45dfd

View File

@ -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=$(