set -o pipefail makes a bash pipeline fail if any stage fails
@mrnarwhal55▲ 5 net votes
Without it, a pipeline's exit status is the last command's, so false | true succeeds. With set -o pipefail, any failing stage fails the pipeline.
2 COMMENTS
Resolved
Outstanding