Skip to content

Commit

Permalink
Properly quote replacment string in param expansion (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
baodrate committed Dec 7, 2023
1 parent fe0f961 commit 2de0c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2de0c23

Please sign in to comment.