Comment Comment by klysm I always putset -euxo pipefailat the top of my bash scripts. It makes some conditional testing more difficult but it has paid for itself many times over just because of pipefail parent klysm 2 years ago
set -euxo pipefail
at the top of my bash scripts. It makes some conditional testing more difficult but it has paid for itself many times over just because of pipefail