[bitnami/containers] Revisit the script to retrieve additional packages

Follow up #32704

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero 2023-05-09 09:29:34 +02:00 committed by GitHub
parent 56b51d2817
commit 7c5ee1dc4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -121,7 +121,9 @@ jobs:
# Iterating over the external components to get the involved elements
while read -r component_id; do
if [[ -n "$component_id" ]]; then
echo "Component ${component_id}"
component_version_full=$(jq -cr '.'"${component_id}"'.version' "$components_json_file")
echo "Component version: ${component_version_full}"
if [[ "$component_version_full" =~ $COMPONENT_VERSION_REGEX ]] && [[ "${#BASH_REMATCH[@]}" -ge 3 ]]; then
component_version=${BASH_REMATCH[1]}
component_distro=$(jq -cr '.'"${component_id}"'.distro' "$components_json_file")