mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 20:11:24 +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}")
|
timestamp=$(date +"${__BASHIO_LOG_TIMESTAMP}")
|
||||||
|
|
||||||
output="${__BASHIO_LOG_FORMAT}"
|
output="${__BASHIO_LOG_FORMAT}"
|
||||||
output="${output//\{TIMESTAMP\}/${timestamp}}"
|
output="${output//\{TIMESTAMP\}/"${timestamp}"}"
|
||||||
output="${output//\{MESSAGE\}/${message}}"
|
output="${output//\{MESSAGE\}/"${message}"}"
|
||||||
output="${output//\{LEVEL\}/${__BASHIO_LOG_LEVELS[$level]}}"
|
output="${output//\{LEVEL\}/"${__BASHIO_LOG_LEVELS[$level]}"}"
|
||||||
|
|
||||||
echo -e "${output}" >&2
|
echo -e "${output}" >&2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue