diff options
author | DarkLord1731 <darklord1731@gmail.com> | 2018-07-29 00:15:18 +0530 |
---|---|---|
committer | Chris Renshaw <osm0sis@outlook.com> | 2018-07-29 06:58:38 -0300 |
commit | e92d8f96c6c0f53bb1243146d0da58512efa9556 (patch) | |
tree | 6a703edf085b683626cf9dfaf64cd905728249eb | |
parent | 30cca512d9216c463b21aa1c89629077b176c7c8 (diff) |
AK2: Allow reading multiple lines from version file
This becomes handy to display some additional details apart from just showing the kernel version
-rwxr-xr-x | META-INF/com/google/android/update-binary | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 9eb5ec6..d53ca96 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -74,7 +74,9 @@ fi; ui_print "$(file_getprop /tmp/anykernel/anykernel.sh kernel.string)"; if [ -f /tmp/anykernel/version ]; then ui_print " "; - ui_print "$(cat /tmp/anykernel/version)"; + while IFS='' read -r line || $bb [[ -n "$line" ]]; do + ui_print "$line"; + done < /tmp/anykernel/version; ui_print " "; fi; ui_print " "; |