META-INF: update-binary: Clean up before starting the flashing process

In this way if there were files left from previous installations they get deleted.
This commit is contained in:
axxx007xxxz authored and osm0sis committed 2017-02-27 16:06:03 -04:00
1 parent 7aebdb2efd
commit 2129ee98e2
1 file changed
+1
@@ -28,6 +28,7 @@ abort() { ui_print "$*"; umount /system; umount /data; exit 1; }
show_progress 1.34 4;
ui_print " ";
cleanup;
mkdir -p /tmp/anykernel/bin;
cd /tmp/anykernel;
unzip -o "$ZIP";