mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-05-31 13:50:42 +00:00
Better defaulting of ENV vars
This commit is contained in:
parent
61c70a5045
commit
5f1de4077c
4
main.sh
4
main.sh
@ -24,8 +24,8 @@
|
|||||||
### Configuration
|
### Configuration
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables and their defaults
|
||||||
[ -z "${LOG_LEVEL}" ] && LOG_LEVEL="6" # 7 = debug -> 0 = emergency
|
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.
|
# 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:
|
# the parsing is unforgiving so be precise in your syntax:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user