From 51d01412338c166953e3712011c5be904d74f817 Mon Sep 17 00:00:00 2001 From: Rohit Date: Thu, 29 Sep 2022 11:12:34 +0530 Subject: [PATCH] build.sh: Move IMG-e-*.zip* to $ZIP_DIR/$zipsubdir * Incase we have inline built IMG-e-*.zip* in $OUT move it. --- src/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build.sh b/src/build.sh index e4fe4a4..dc9dca0 100755 --- a/src/build.sh +++ b/src/build.sh @@ -272,9 +272,9 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then # Move produced ZIP files to the main OUT directory echo ">> [$(date)] Moving build artifacts for ${DEVICE} to '$ZIP_DIR/$zipsubdir'" cd "${OUT}" || return 1 - for build in $(ls e-*.zip); do + for build in $(ls e-*.zip IMG-e*.zip); do sha256sum "$build" > "$ZIP_DIR/$zipsubdir/$build.sha256sum" - find . -maxdepth 1 -name 'e-*.zip*' -type f -exec mv {} "$ZIP_DIR/$zipsubdir/" \; + find . -maxdepth 1 \( -name 'e-*.zip*' -o -name 'IMG-e*.zip*' \) -type f -exec mv {} "$ZIP_DIR/$zipsubdir/" \; SKIP_DYNAMIC_IMAGES="odm.img product.img system.img system_ext.img vendor.img" if [ "$BACKUP_IMG" = true ]; then -- GitLab