Backend: fix restore_env $bb commands

- this needs to be before cleanup so busybox will still be there
This commit is contained in:
Chris Renshaw authored and GitHub committed 2019-08-29 01:27:02 -03:00
1 parent c6ccb4fa4e
commit 98b1ac602f
1 file changed
+2 -3
+2 -3
View File
@@ -81,10 +81,10 @@ restore_env() {
abort() {
ui_print "$@";
debugging;
restore_env;
if [ ! -f anykernel.sh -o "$(file_getprop anykernel.sh do.cleanuponabort 2>/dev/null)" == 1 ]; then
cleanup;
fi;
restore_env;
exit 1;
}
@@ -280,11 +280,10 @@ if [ "$(file_getprop anykernel.sh do.modules)" == 1 ]; then
fi;
debugging;
restore_env;
if [ "$(file_getprop anykernel.sh do.cleanup)" == 1 ]; then
cleanup;
fi;
restore_env;
ui_print " " " " "Done!";