From 45daf5e430918fe2d4f6103a991d1109f2781e11 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 12 Oct 2023 01:09:53 +0200 Subject: [PATCH] Update 90-config_yaml.sh --- .templates/90-config_yaml.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/90-config_yaml.sh b/.templates/90-config_yaml.sh index 94906d4a6..12641d0d4 100755 --- a/.templates/90-config_yaml.sh +++ b/.templates/90-config_yaml.sh @@ -69,11 +69,11 @@ cp "$CONFIGSOURCE" /tempenv sed -i '/^#/d' /tempenv sed -i '/^ /d' /tempenv sed -i '/^$/d' /tempenv - # Exit if empty if [ ! -s /tempenv ]; then exit 0 fi +rm /tempenv # Check if yaml is valid EXIT_CODE=0 @@ -149,7 +149,7 @@ while IFS= read -r line; do if [ -d /var/run/s6/container_environment ]; then printf "%s" "${VALUE}" > /var/run/s6/container_environment/"${KEYS}"; fi echo "export ${KEYS}=\"${VALUE}\"" >> ~/.bashrc # Show in log - if ! bashio::config.false "verbose"; then bashio::log.blue "$KEYS=\'$VALUE\'"; fi + if ! bashio::config.false "verbose"; then bashio::log.blue "$KEYS='$VALUE'"; fi else bashio::log.fatal "$line does not follow the correct structure. Please check your yaml file." fi