CommonInstaller: make error function not produce errors itself (sic\!) when error-ing before /data is mounted (read: ultra-early in install process

merge-requests/23/head
Christopher Roy Bratusek 5 years ago
parent 92669e073b
commit 191971ac91

@ -213,12 +213,14 @@ error () {
ui_print "${@}"
ui_print " !!"
if is_mounted /data; then
[ "${MODE}" = "MAGISK" ] && rm -rf "${MODPATH}"
recovery_cleanup
INSTALL_SUCCESS=FALSE
nanodroid_storelogs
fi
exit 1
}

Loading…
Cancel
Save