mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-03 18:41:31 +00:00
Properly quote replacment string in param expansion (#146)
This commit is contained in:
parent
fe0f961efc
commit
2de0c2304a
1 changed files with 3 additions and 3 deletions
|
@ -111,9 +111,9 @@ function bashio::log.log() {
|
|||
timestamp=$(date +"${__BASHIO_LOG_TIMESTAMP}")
|
||||
|
||||
output="${__BASHIO_LOG_FORMAT}"
|
||||
output="${output//\{TIMESTAMP\}/${timestamp}}"
|
||||
output="${output//\{MESSAGE\}/${message}}"
|
||||
output="${output//\{LEVEL\}/${__BASHIO_LOG_LEVELS[$level]}}"
|
||||
output="${output//\{TIMESTAMP\}/"${timestamp}"}"
|
||||
output="${output//\{MESSAGE\}/"${message}"}"
|
||||
output="${output//\{LEVEL\}/"${__BASHIO_LOG_LEVELS[$level]}"}"
|
||||
|
||||
echo -e "${output}" >&2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue