diff options
author | Leah Rowe <leah@libreboot.org> | 2024-05-29 01:49:07 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-05-29 02:07:38 +0100 |
commit | e9b9e825f1738a1b7159f81a45cb8e0f46d9ff94 (patch) | |
tree | 4379e3a39e5a9b13a3cd26932b2a2fe9451199ae /config/flashprog | |
parent | 0dd0dfaf3db5082f0256ec376180eb8b4eaab1c3 (diff) |
./vendor download: more fine-tuned error control
By default, the build system does set -u -e
Some errors are unavoidable and have to be handled, so
we have to set +u +e (turn off error handling in sh),
when downloading vendor files, but only certain parts of
vendor.sh trigger errors (which cause an exit).
Replace the current bazooka approach with a more fine
grained approach, turning error handling back on again
when it is safe to do so.
In the parts of the code where it is disabled, the code
is written very, very carefully, with errors still handled
manually, but more careful auditing is required.
This change has been tested and makes the command much
safer to run. In security (or any bug auditing), it is
the principle of least privilege that holds true.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/flashprog')
0 files changed, 0 insertions, 0 deletions