From 98b1ac602f0c0e819a73882ce3c00231dd714855 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 29 Aug 2019 01:27:02 -0300 Subject: [PATCH] Backend: fix restore_env $bb commands - this needs to be before cleanup so busybox will still be there --- META-INF/com/google/android/update-binary | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index bef5b53..e149a28 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -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!";