From 6401009627c6c335bd9978d0e6e41d25591e8000 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 3 Dec 2021 20:41:28 +0100 Subject: [PATCH] Update 90-config_yaml.sh --- gazpar2mqtt/rootfs/scripts/90-config_yaml.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh b/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh index 1b22437f5..72f51ed13 100644 --- a/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh +++ b/gazpar2mqtt/rootfs/scripts/90-config_yaml.sh @@ -85,11 +85,11 @@ while IFS= read -r line; do logmsg="Variable set : $line" if [ -f /etc/services.d/*/*run* ]; then sed -i "1a export $line" /etc/services.d/*/run # Export the variable - sed -i "1a bashio::log.blue $logmsg 2>/dev/null || echo \$(tput -T xterm setaf 2)$logmsg\$(tput -T xterm setaf 0) 2>/dev/null" /etc/services.d/*/run # Show text in colour + sed -i "1a bashio::log.blue \"$logmsg\" || echo \"$logmsg\"" /etc/services.d/*/run # Show text in colour fi if [ -f /scripts/*run* ]; then sed -i "1a export $line" /scripts/*run* # Export the variable - sed -i "1a bashio::log.blue $logmsg 2>/dev/null || echo \$(tput -T xterm setaf 2)$logmsg\$(tput -T xterm setaf 0) 2>/dev/null" /scripts/*run* # Show text in colour + sed -i "1a bashio::log.blue \"$logmsg\" || echo \"$logmsg\"" /scripts/*run* # Show text in colour fi bashio::log.blue "$line" else