[PATCH xenomai-images v2 2/4] ci: Fix deploy script to handle multiple DTB files
Tobias Schaffner <[email protected]>
| Newsgroups | dev.linux.lists.xenomai |
|---|---|
| Message-ID | <[email protected]> |
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 -- 2.43.0