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
#!/usr/bin/env bash | |
# Exit if any command fails | |
set -o errexit | |
# Exit if trying to use undeclared var | |
set -o nounset | |
# On piped commands, use the exit status of the last command throwing a non-zero exit code |