Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Mar 2, 2025
1 parent 632bf0b commit e48a8d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions zip-content/META-INF/com/google/android/update-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e48a8d2

Please sign in to comment.