mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-05-29 12:54:12 +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
|
||||
#####################################################################
|
||||
|
||||
# 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user