From 04b2d1689e002fc96c43f79f5c905c59ccce107a Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Thu, 4 Apr 2024 09:31:53 +0100 Subject: [PATCH] Fix path of IMAGES directory for 21.0 --- src/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/build.sh b/src/build.sh index feea272..0ab3c14 100755 --- a/src/build.sh +++ b/src/build.sh @@ -483,8 +483,10 @@ for branch in ${BRANCH_NAME//,/ }; do mv "$build" "$ZIP_DIR/$zipsubdir/" &>> "$DEBUG_LOG" files_to_hash+=( "$build" ) done - - cd "$source_dir/out/target/product/$codename/obj/PACKAGING/target_files_intermediates/lineage_$codename-target_files-eng.root/IMAGES/" + img_dir=$(find "$source_dir/out/target/product/$codename/obj/PACKAGING" -name "IMAGES") + if [ -d "$img_dir" ]; then + cd "$img_dir" + fi if [ "$ZIP_UP_IMAGES" = true ]; then # zipping the .img files echo ">> [$(date)] Zipping the .img files" | tee -a "$DEBUG_LOG"