Compare commits

..

14 Commits

Author SHA1 Message Date
Techno Tim
c1d2701d19 Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 13:36:46 -05:00
Timothy Stewart
604eb7a6e6 fix(script): fixed yq 2024-03-25 13:36:08 -05:00
Techno Tim
ddf01c3a74 Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 13:28:44 -05:00
Timothy Stewart
a204ed5169 fix(script): fixed yq 2024-03-25 13:28:28 -05:00
Techno Tim
c697ff36aa Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 13:24:27 -05:00
Timothy Stewart
b6608ca3e4 fix(script): fixed yq 2024-03-25 13:21:32 -05:00
Techno Tim
3ee9a71a4f Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 13:07:45 -05:00
Timothy Stewart
8252a45dfd fix(script): fixed yq 2024-03-25 13:07:31 -05:00
Techno Tim
7794d70f2b Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 13:03:03 -05:00
Timothy Stewart
c99f098c2e fix(script): fixed yq 2024-03-25 13:02:16 -05:00
Techno Tim
60815cf435 Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 11:34:51 -05:00
Timothy Stewart
7867b87d85 fix(script): fixed yq 2024-03-25 11:34:40 -05:00
Techno Tim
4511ea8558 Merge branch 'master' into dependabot/pip/pre-commit-3.7.0 2024-03-25 11:33:18 -05:00
Timothy Stewart
dfe19f3731 fix(script): fixed yq 2024-03-25 11:31:19 -05:00

View File

@@ -9,12 +9,17 @@ set -euo pipefail
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 -r '.platforms[].box' | # Read the "box" property of each node under "platforms"
grep --invert-match --regexp=--- | # Filter out file separators
sort |
uniq)
yq --version
# Define the path to the molecule.yml files
MOLECULE_YML_PATH="${GIT_ROOT}/molecule/*/molecule.yml"
# Extract and sort unique boxes from all molecule.yml files
all_boxes=$(for file in $MOLECULE_YML_PATH; do
yq eval '.platforms[].box' "$file"
done | sort -u)
echo all_boxes: "$all_boxes"
# Read the boxes that are currently present on the system (for the current provider)
present_boxes=$(