mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 02:21:28 +02: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 '/^#/d' /tempenv
|
||||||
sed -i '/^[[:space:]]*$/d' /tempenv
|
sed -i '/^[[:space:]]*$/d' /tempenv
|
||||||
sed -i '/^$/d' /tempenv
|
sed -i '/^$/d' /tempenv
|
||||||
echo "" >> /tempenv
|
|
||||||
|
|
||||||
# Exit if empty
|
# Exit if empty
|
||||||
if [ ! -s /tempenv ]; then
|
if [ ! -s /tempenv ]; then
|
||||||
@@ -101,6 +100,8 @@ if [ ! -s /tempenv ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "" >> /tempenv
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
bashio::log.green "Load environment variables from $CONFIGSOURCE if existing"
|
bashio::log.green "Load environment variables from $CONFIGSOURCE if existing"
|
||||||
if [[ "$CONFIGSOURCE" == "/config"* ]]; then
|
if [[ "$CONFIGSOURCE" == "/config"* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user