mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Fix echo command to append an empty line to /tempenv
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user