With this shell attribute, the script will abort if any of the executed commands exits with a non-zero status.
This repository contains a script that can be used on a Fedora installation to recreate the setup I use.