2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-09 19:10:30 +00:00

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

This commit is contained in:
Christopher Roy Bratusek 2019-05-12 22:28:49 +02:00
parent 92669e073b
commit 191971ac91

View File

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