Rollback progress on installation failure

This commit is contained in:
Jim Wu 2021-01-19 22:44:24 +08:00 committed by LoveSy
parent f5227b5336
commit f172d26c9d
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@ SKIPUNZIP=1
abortC() {
rm -rf "${MODPATH}"
if [[ ! -f /data/adb/edxp/misc_path ]]; then
[[ -d "${MISC_PATH}" ]] && rm -rf "${MISC_PATH}"
fi
abort "$1"
}