Browse Source

Fix ui_print

Signed-off-by: Paul Keith <[email protected]>
Paul Keith 8 years ago
parent
commit
36c04ec8d7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      build/meta/com/google/android/update-binary

+ 6 - 0
build/meta/com/google/android/update-binary

@@ -1,5 +1,6 @@
 #!/sbin/sh
 
+OUTFD="/proc/self/fd/$2"
 ZIP=$3
 
 exec_util() {
@@ -19,6 +20,11 @@ set_owner() {
   exec_util "chown $1:$2 $3"
 }
 
+ui_print() {
+  echo "ui_print $1" > "$OUTFD";
+  echo "ui_print" > "$OUTFD";
+}
+
 ui_print "*****************"
 ui_print "MindTheGapps installer"
 ui_print "*****************"