Last active
February 23, 2016 13:53
-
-
Save arnehormann/6028664 to your computer and use it in GitHub Desktop.
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 | |
# stop on errors and undeclared variables | |
set -e -u -o pipefail | |
err() { | |
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $@" >&2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Print a help text for environment variables used in the current file.
The variables must have a postfix comment starting with
#@@
(Bash 4):e.g.