Skip to main content
2 of 2
added 49 characters in body
carbolymer
  • 335
  • 3
  • 11

After some digging, I've found this answer: https://stackoverflow.com/questions/22464786/ignoring-bash-pipefail-for-error-code-141#comment60412687_33026977 Basically, using:

set -euxo pipefail
yes phrase | make installer || (ec=$? ; if [ "$ec" -eq 141 ]; then exit 0; else exit "$ec"; fi)

just filters out SIGPIPE from return codes.

carbolymer
  • 335
  • 3
  • 11