Fix echo command to append an empty line to /tempenv

This commit is contained in:
Alexandre
2025-11-24 12:33:15 +01:00
committed by GitHub
parent 86e10379cd
commit 4b501845c5

View File

@@ -93,7 +93,6 @@ cp "$CONFIGSOURCE" /tempenv
sed -i '/^#/d' /tempenv
sed -i '/^[[:space:]]*$/d' /tempenv
sed -i '/^$/d' /tempenv
echo "" >> /tempenv
# Exit if empty
if [ ! -s /tempenv ]; then
@@ -101,6 +100,8 @@ if [ ! -s /tempenv ]; then
exit 0
fi
echo "" >> /tempenv
echo ""
bashio::log.green "Load environment variables from $CONFIGSOURCE if existing"
if [[ "$CONFIGSOURCE" == "/config"* ]]; then