This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Fix error handling for custom build scripts #100
Comments
Looks good, but why do For example, false
echo It should not be here Is it because |
We have a set -e ??????? |
arch_loadfile_strict have. |
It's probably the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our current error handling for sourced scripts involve testing what is returned from the script itself. For predefined build scripts this works well because we have many return-on-error hooks, but things go wild with poorly-written (read: every single one of)
autobuild/build
scripts.We can either fix all the scripts, or at least partially switch to some "strict mode" handling by
set -ueE
andtrap something ERR
. (Hell, I don't even like how.()
messes up scopes in the first place.) It is, however, still important to note thatset -e
does not properly handle lines with&&
and/or||
. And I also have no idea about how to re-enter the script from an error handler.The text was updated successfully, but these errors were encountered: