I have a bash script used to make my project. I have set -e
in top of the script to break the execution when any component fails.
One of the commands would fail, but it is natural for it to fail. I would like the script to behave as such:
- Run the script.
- Reach and run the problematic command.
- If it fails, don't break execution. Do this ONLY for this command.