X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=pipelines%2Fimages%2Fdistrobuild.sh;h=7c2e161d841b5d7eb02bcf46a4ed9f4619c3f13f;hb=7a714a3e7eb2c37e5f86d2c56d6ec309c9286da6;hp=b5e624ff5b85da56ff6bf73b325b45916d5f236c;hpb=e8cf66274a3d12f09f57c8cf9798a691baf81927;p=lttng-ci.git diff --git a/pipelines/images/distrobuild.sh b/pipelines/images/distrobuild.sh index b5e624f..7c2e161 100644 --- a/pipelines/images/distrobuild.sh +++ b/pipelines/images/distrobuild.sh @@ -111,6 +111,12 @@ EXTENSIONS=( ) IMAGE_FILE='' for IMAGE_DIR in "${IMAGE_DIRS[@]}" ; do + for EXTENSION in "${EXTENSIONS[@]}" ; do + if [ -f "${IMAGE_DIR}/${OS}-${RELEASE}.${EXTENSION}" ] ; then + IMAGE_FILE="${IMAGE_DIR}/${OS}-${RELEASE}.${EXTENSION}" + break 2; + fi + done for EXTENSION in "${EXTENSIONS[@]}" ; do if [ -f "${IMAGE_DIR}/${OS}.${EXTENSION}" ] ; then IMAGE_FILE="${IMAGE_DIR}/${OS}.${EXTENSION}"