r2g
r2g copied to clipboard
bash flags active
https://stackoverflow.com/questions/49949201/determine-if-set-e-flag-if-is-active-in-bash
From help test:
-o OPTION True if the shell option OPTION is enabled.
...
[ -o errexit ]