Backend: fix ui_printfile on Lineage-based recoveries

- add padding character to work around bad handling of leading whitespace which CWM-based and TWRP-based both handle fine
This commit is contained in:
osm0sis committed 2023-03-16 17:10:24 -03:00
1 parent 398b9631df
commit 7c8c1e7e9b
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -24,8 +24,10 @@ ui_print() {
done;
}
ui_printfile() {
local line losrpad;
[ -e /twres ] || losrpad='| '; # work around LOS Recovery eating leading whitespace
while IFS='' read -r line || $BB [[ -n "$line" ]]; do
ui_print "$line";
ui_print "$losrpad$line";
done < $1;
}
show_progress() { echo "progress $1 $2" >> $OUTFD; }
+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
#
# AK_BASE_VERSION=20230208
# AK_BASE_VERSION=20230316