From ab041f530c5a684640761ec50b200d5aa01d4553 Mon Sep 17 00:00:00 2001 From: Salvo Giangreco Date: Thu, 4 Jul 2024 14:52:15 +0200 Subject: [PATCH] scripts: build_flashable_zip: fix up Change-Id: I08f69b2d560ac3314faabff57932d182f1635ae1 --- scripts/internal/build_flashable_zip.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/internal/build_flashable_zip.sh b/scripts/internal/build_flashable_zip.sh index bc2a5a4e..97283016 100755 --- a/scripts/internal/build_flashable_zip.sh +++ b/scripts/internal/build_flashable_zip.sh @@ -316,9 +316,9 @@ GENERATE_UPDATER_SCRIPT() if $HAS_SYSTEM; then echo -e "\n# Patch partition system\n" echo 'ui_print("Patching system image unconditionally...");' - echo -n 'show_progress(' - LC_NUMERIC=C printf "%.6f" "$(echo "0.9 - ($PARTITION_COUNT * 0.1)" | bc -l)" - echo ', 0);' + echo -n 'show_progress(0.' + echo "9 - $PARTITION_COUNT" | bc -l | tr -d "\n" + echo '00000, 0);' echo 'block_image_update(map_partition("system"), package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||' echo ' abort("E1001: Failed to update system image.");' fi