Better defaulting of ENV vars

This commit is contained in:
Kevin van Zonneveld 2014-07-23 11:28:38 +02:00
parent 61c70a5045
commit 5f1de4077c

View File

@ -24,8 +24,8 @@
### Configuration
#####################################################################
# Environment variables
[ -z "${LOG_LEVEL}" ] && LOG_LEVEL="6" # 7 = debug -> 0 = emergency
# Environment variables and their defaults
LOG_LEVEL="${LOG_LEVEL:-6}" # 7 = debug -> 0 = emergency
# Commandline options. This defines the usage page, and is used to parse cli opts & defaults from.
# the parsing is unforgiving so be precise in your syntax: