DivestOS/Scripts/Common
steadfasterX 30859d2c08
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-22 10:24:18 +02:00
..
Copy_Keys.sh Fixup 09494a1c 2023-11-07 21:19:43 -05:00
Deblob.sh Unbreak athene 2023-09-04 14:18:32 -04:00
Defaults.sh Fixes + Churn 2023-07-24 03:59:51 -04:00
Enable_Verity.sh Small fixups 2023-08-18 16:08:10 -04:00
Fix_CVE_Patchers.sh Fixup 2024-04-08 15:12:49 -04:00
Functions.sh fix-up & enhance advanced error handling 2024-04-22 10:24:18 +02:00
Optimize.sh 14.1: add athene 2023-08-29 21:55:15 -04:00
Patch_CVE.sh Don't bail when devices are missing 2023-03-07 23:41:27 -05:00
Post.sh make divest functions error aware 2024-04-22 10:24:18 +02:00
Shell.sh More fixes 2021-10-16 22:57:43 -04:00
Tag_Verifier.sh Updates, logging, and churn 2023-03-31 12:38:46 -04:00