DivestOS/Scripts
steadfasterX d812305b49
fix-up & enhance advanced error handling
new (internal used) functions:
- _exit
- _exit_report
- _exit_sigint

these are used to fix several (wrong) error handlings.

new environment variable:
- UNATTENDED_PATCHING

by default we assume unattended patching, i.e. if an error occurs during
the patch, reset or any other process we will report the error and
auto close the shell. this is needed as we source functions and code and
so cannot simply terminate a master process. instead the whole shell will
be terminated so if an error occurs nothing else will be executed (and you
should notice easily that something is wrong).

without that a (serious) error can still continue the rest of a function
and you likely not even noticing the error itself.

you can use:

export UNATTENDED_PATCHING=0

before or after sourcing init.sh and it will *NOT* auto-close the shell.
that way you can check the output and fix any issues.

Signed-off-by: steadfasterX <steadfasterX@gmail.com>
2024-04-11 17:01:12 +00:00
..
Common fix-up & enhance advanced error handling 2024-04-11 17:01:12 +00:00
LineageOS-14.1 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
LineageOS-15.1 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
LineageOS-16.0 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
LineageOS-17.1 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
LineageOS-18.1 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
LineageOS-19.1 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
LineageOS-20.0 Updates, logging, and churn 2023-03-31 12:38:46 -04:00
Generate_Signing_Keys.sh Tiny "fix" 2023-03-10 17:51:04 -05:00
Generate_Supporting_Files.sh Robustness improvements 2023-03-08 01:14:06 -05:00
Generate_Verified_Boot_Hashes.sh Fixup license 2022-12-15 17:39:21 -05:00
Generate_Wallpaper_Sizes.sh Fixup 2022-08-15 16:40:32 -04:00
init.sh fix-up & enhance advanced error handling 2024-04-11 17:01:12 +00:00
Update_Commons.sh Update commons 2023-03-06 20:39:36 -05:00