Skip to content

Commit

Permalink
scripts: build_flashable_zip: fix up
Browse files Browse the repository at this point in the history
Change-Id: I08f69b2d560ac3314faabff57932d182f1635ae1
  • Loading branch information
salvogiangri committed Jul 4, 2024
1 parent 0236907 commit ab041f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/internal/build_flashable_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab041f5

Please sign in to comment.