Skip to content

Commit

Permalink
Merge branch 'main' into reusable-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-young authored Aug 29, 2024
2 parents 05f3e4c + 0e5f0ed commit 2e31505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dell-csi-helm-installer/csi-offline-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ run_command() {
# build_image_manifest
# builds a manifest of all the images referred to by the helm chart
build_image_manifest() {
local REGEX_COMMENTS="(#.*)"
local REGEX="([-_./:A-Za-z0-9]{3,}):([-_.A-Za-z0-9]{1,})"

status "Building image manifest file"
Expand All @@ -86,7 +87,7 @@ build_image_manifest() {
# - search all files in a diectory looking for strings that make $REGEX
# - exclude anything with double '//'' as that is a URL and not an image name
# - make sure at least one '/' is found
find "${D}" -type f -exec egrep -oh "${REGEX}" {} \; | egrep -v '//' | egrep '/' >> "${IMAGEMANIFEST}.tmp"
find "${D}" -type f -exec egrep -v "${REGEX_COMMENTS}" {} \; | egrep -oh "${REGEX}"| egrep -v '//' | egrep '/' >> "${IMAGEMANIFEST}.tmp"
fi
done

Expand Down

0 comments on commit 2e31505

Please sign in to comment.