What does `set -euo pipefail` do in bash?
`set -e` exits the script immediately on any command error. `set -u` treats references to undefined variables as errors instead of silently using an empty string. `set -o pipefail` makes a pipeline fail if any command in the pipe fails, not just the last one. Together they prevent scripts from silently continuing after a failure.