Skip to content

Commit 2de0c23

Browse files
authored
Properly quote replacment string in param expansion (#146)
1 parent fe0f961 commit 2de0c23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/log.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ function bashio::log.log() {
111111
timestamp=$(date +"${__BASHIO_LOG_TIMESTAMP}")
112112

113113
output="${__BASHIO_LOG_FORMAT}"
114-
output="${output//\{TIMESTAMP\}/${timestamp}}"
115-
output="${output//\{MESSAGE\}/${message}}"
116-
output="${output//\{LEVEL\}/${__BASHIO_LOG_LEVELS[$level]}}"
114+
output="${output//\{TIMESTAMP\}/"${timestamp}"}"
115+
output="${output//\{MESSAGE\}/"${message}"}"
116+
output="${output//\{LEVEL\}/"${__BASHIO_LOG_LEVELS[$level]}"}"
117117

118118
echo -e "${output}" >&2
119119

0 commit comments

Comments
 (0)