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 | |
# shellcheck disable=all | |
#-------------- options -------------- | |
set -e # stop on any command fail | |
set -E # generate ERR exception on aliases, functions, and commands in if/while/until conditions | |
set -u # stop on any unbound variable | |
set -o pipefail # stop on any fail with pipe | |
set -o errtrace # print call trace on errors |
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 | |
# | |
# YOUR DESCRIPTION HERE | |
# | |
# | |
# check it with https://www.shellcheck.net/ | |
# set -e = FAIL if any command fails | |
# set -o pipefail = FAIL if any command in the pipe fails | |
# set -u = FAIL if any variable is used, but not initialized |