diff --git a/src/build.sh b/src/build.sh index 34f127f39e422c36a49c4767bf15636e16e4417f..a634d942bd2fa921442b0b2741cfa406cfaf09b1 100755 --- a/src/build.sh +++ b/src/build.sh @@ -389,11 +389,11 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then mv "$RECOVERY_ZIP_NAME"* "$ZIP_DIR/$zipsubdir/" else if [ "$VBOOT_IS_RECOVERY" = true ]; then - cp -a "obj/PACKAGING/target_files_intermediates/lineage_*/IMAGES/vendor_boot.img" "$RECOVERY_IMG_NAME" + cp -a obj/PACKAGING/target_files_intermediates/lineage_*/IMAGES/vendor_boot.img "$RECOVERY_IMG_NAME" elif [ -f "recovery.img" ]; then - RECOVERY_IMG_NAME="recovery.img" + cp -a recovery.img "$RECOVERY_IMG_NAME" else - RECOVERY_IMG_NAME="boot.img" + cp -a boot.img "$RECOVERY_IMG_NAME" fi # Calculate sha256sum and move file @@ -478,4 +478,3 @@ fi if [ "$build_successful" = false ] || [ "$sync_successful" = false ]; then exit 1 fi -