Only if I could somehow mix `if` & `set -e`in a readable way... I wanted it to only capture errors of explicit `return 1` from bash functions, not from commands within those bash functions. But I guess I'm doing too much* of the job in bash now and it's getting messy.
exit_code is not an environment variable?
https://www.gnu.org/software/bash/manual/html_node/Shell-Par...