From 2de0c2304a69bb96ce5ecf937de2dd5eb95a4abb Mon Sep 17 00:00:00 2001 From: Bao Date: Thu, 7 Dec 2023 03:54:46 -0600 Subject: [PATCH] Properly quote replacment string in param expansion (#146) --- lib/log.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/log.sh b/lib/log.sh index 5048c59..13a4496 100644 --- a/lib/log.sh +++ b/lib/log.sh @@ -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