Standardize bash error-handling

Always use `set -eou pipefail` at the beginning of bash scripts to ensure consistent and robust error handling. This combination ensures scripts fail immediately on errors (`-e`), treat unset variables as errors (`-u`), and properly handle pipeline failures (`-o pipefail`), preventing silent failures and making debugging easier.

copy reviewer prompt

Prompt

Reviewer Prompt

Always use set -eou pipefail at the beginning of bash scripts to ensure consistent and robust error handling. This combination ensures scripts fail immediately on errors (-e), treat unset variables as errors (-u), and properly handle pipeline failures (-o pipefail), preventing silent failures and making debugging easier.

# Good practice
#!/bin/bash
set -eou pipefail

# Rest of your script

Source discussions