Make a shell script exits if any subcommand failed

Sometimes, it’s very useful that a shell script exists when an error is encountered (if any subcommand or pipeline returns a non-zero status).

To get this behaviour just add set -e in the beginning of the script.

If you want to ask me a question or leave me a message add @bougui505 in your comment.