Skip to content

Commit

Permalink
Fix readarray.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
  • Loading branch information
AndrienkoAleksandr committed Jun 5, 2020
1 parent 9c233b6 commit a126120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/dockerfiles/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if env | grep -q ".*devfile_registry_image.*"; then

readarray -t devfiles < <(find "${DEVFILES_DIR}" -name 'devfile.yaml')
for devfile in "${devfiles[@]}"; do
readarray -t images < <(grep "image:" "${devfile}" | sed -E "s;.*image:[[:space:]]*"?\(.*\)"?[[:space:]]*;\1;" | tr -d '"')
readarray -t images < <(grep "image:" "${devfile}" | sed -E "s;.*image:[[:space:]]*"?\(.*\)"?[[:space:]]*;\1;" | tr -d '"' | tr -d ' ')
for image in "${images[@]}"; do
digest="${imageMap[${image}]}"
if [[ -n "${digest}" ]]; then
Expand Down

0 comments on commit a126120

Please sign in to comment.