CommonInstaller: cleanup TWRP environment when an installation error occurs during System Mode installation (regression from 17.9)

merge-requests/23/head
Christopher Roy Bratusek 6 years ago
parent 9953a5ab03
commit 0bb7d57f79

@ -2,11 +2,18 @@
## 17.10 in-dev
### Bug Fixes
* CommonInstaller
* cleanup TWRP environment when an installation error occurs during System Mode installation
* regression from 17.9
### General Changes
* CommonInstaller
* code simplifications
* don't set progressbar when flashing from Magisk Manager
* minor string change
### Updates

@ -155,6 +155,9 @@ show_banner () {
ui_print " NanoDroid ${VERSION} "
ui_print " created by Nanolx "
case ${MODID} in
NanoDroid )
ui_print " Full package "
;;
NanoDroid_microG )
ui_print " microG package "
;;
@ -174,9 +177,9 @@ error () {
if [ "${MODE}" = "MAGISK" ]; then
rm -rf "${MODPATH}"
unmount_magisk_img
${BOOTMODE} || recovery_cleanup
fi
${BOOTMODE} || recovery_cleanup
nanodroid_storelogs
exit 1

Loading…
Cancel
Save