Created
July 18, 2018 10:34
-
-
Save tomeightyeight/a0fc7fec0d7d093c022b65eedf5f43ac to your computer and use it in GitHub Desktop.
Bash Fail Loud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -uo pipefail | |
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR | |
IFS=$'\n\t' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment