mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Improve removal of lines starting with whitespace
This commit is contained in:
@@ -111,7 +111,7 @@ fi
|
|||||||
# Check if there are lines to read
|
# Check if there are lines to read
|
||||||
cp "$CONFIGSOURCE" /tempenv
|
cp "$CONFIGSOURCE" /tempenv
|
||||||
sed -i '/^#/d' /tempenv
|
sed -i '/^#/d' /tempenv
|
||||||
sed -i '/^ /d' /tempenv
|
sed -i '/^[[:space:]]*$/d' /tempenv
|
||||||
sed -i '/^$/d' /tempenv
|
sed -i '/^$/d' /tempenv
|
||||||
# Exit if empty
|
# Exit if empty
|
||||||
if [ ! -s /tempenv ]; then
|
if [ ! -s /tempenv ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user