Skip to content

Commit

Permalink
Rollback progress on installation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
MlgmXyysd committed Jan 19, 2021
1 parent df3b154 commit 9f78f46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edxp-core/template_override/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 9f78f46

Please sign in to comment.