From e48a8d2f8e78b0ffdf4f2183c373637a360912d2 Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Sun, 2 Mar 2025 13:04:13 +0100 Subject: [PATCH] Minor change --- .../META-INF/com/google/android/update-binary.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zip-content/META-INF/com/google/android/update-binary.sh b/zip-content/META-INF/com/google/android/update-binary.sh index c407d03a..45017d99 100644 --- a/zip-content/META-INF/com/google/android/update-binary.sh +++ b/zip-content/META-INF/com/google/android/update-binary.sh @@ -251,5 +251,11 @@ if test "${_ub_we_mounted_tmp:?}" = true; then umount '/tmp' || ui_error 'Failed to unmount the temp folder' fi -if test "${STATUS:?}" -ne 0; then ui_error "Installation script failed" "${STATUS}"; fi -if test "${UNKNOWN_ERROR:?}" -ne 0; then ui_error 'Installation failed with an unknown error'; fi +case "${STATUS?}" in + '0') # Success + test "${UNKNOWN_ERROR:?}" -eq 0 || ui_error 'Installation failed with an unknown error' ;; + '250') # TEST mode + ui_msg 'TEST mode completed!' ;; + *) # Failure + ui_error "Installation script failed" "${STATUS:?}" ;; +esac