Re: [PATCH RFC xenomai-images 2/5] ci: Fix deploy script to handle multiple DTB files
Jan Kiszka <[email protected]>
| Newsgroups | dev.linux.lists.xenomai |
|---|---|
| Message-ID | <[email protected]> |
On 17.04.26 22:57, Tobias Schaffner wrote: > Loop over DTB files individually instead of treating them as one path. > > Signed-off-by: Tobias Schaffner <[email protected]> > --- > scripts/deploy_to_aws.sh | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/scripts/deploy_to_aws.sh b/scripts/deploy_to_aws.sh > index 2e0ee41..6c9d8dd 100755 > --- a/scripts/deploy_to_aws.sh > +++ b/scripts/deploy_to_aws.sh > @@ -53,7 +53,8 @@ image=$(ls "${images_dir}/${target}/${isar_base_name}".*.gz) > aws s3 cp "${image}" "${deploy_dir}/$(basename "${image}")" > > # DTB > -dtb=$(ls "${images_dir}/${target}/"*.dtb 2> /dev/null || true ) > -if [ -n "${dtb}" ] ; then > - aws s3 cp "${dtb}" "${deploy_dir}/$(basename "${dtb}")" > -fi > +for dtb in "${images_dir}/${target}/"*.dtb ; do > + if [ -f "${dtb}" ]; then > + aws s3 cp "${dtb}" "${deploy_dir}/$(basename "${dtb}")" > + fi > +done Will soon need changes again when the Isar dust settled after v1.0. Remains valid until then, though. Jan -- Siemens AG, Foundational Technologies Linux Expert Center