Skip to content

Instantly share code, notes, and snippets.

@chawkinsuf
Created September 4, 2014 18:20
Show Gist options
  • Save chawkinsuf/dc1606c869e3e2a1458b to your computer and use it in GitHub Desktop.
Save chawkinsuf/dc1606c869e3e2a1458b to your computer and use it in GitHub Desktop.
Return the proper error code if a pipe fails
# Return the proper error code if a pipe fails
set -o pipefail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment