Created
January 6, 2020 16:55
-
-
Save jonfk/38334498458d1c4a1841c03bae98cdb1 to your computer and use it in GitHub Desktop.
Default header for bash scripts
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 | |
# abort on nonzero exitstatus | |
set -o errexit | |
# abort on unbound variable | |
set -o nounset | |
# don't hide errors within pipes | |
set -o pipefail | |
# Print each command for debugging | |
# set -o xtrace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment