Fix possible unbound log_level (#107)

This commit is contained in:
Franck Nijhof 2021-11-10 12:33:00 +01:00 committed by GitHub
parent 847f268200
commit d3a0e374b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,8 @@ declare log_level
if bashio::config.exists log_level; then
# Find the matching LOG_LEVEL
case "$(bashio::string.lower "$(bashio::config log_level)")" in
log_level=$(bashio::string.lower "$(bashio::config log_level)")
case "${log_level}" in
all)
log_level="${__BASHIO_LOG_LEVEL_ALL}"
;;