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:
parent
92669e073b
commit
191971ac91
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user