chore: investigate reading module array

This commit is contained in:
ER
2023-08-09 21:02:06 +03:00
parent 7b9faf690c
commit e537d657e5

View File

@@ -27,8 +27,11 @@ echo "Building $IMAGE_NAME from Fedora $FEDORA_VERSION ($BASE_IMAGE)."
# Run each module
MODULES=$(get_yaml_array '.modules')
echo "$MODULES"
for module in "${MODULES[@]}"; do
echo "$module"
TYPE=$(echo "$module" | yq '.type')
echo "Launching module of type: $TYPE"