Improve removal of lines starting with whitespace

This commit is contained in:
Alexandre
2024-09-21 10:09:24 +02:00
committed by GitHub
parent 6122393e15
commit bc90d4158a

View File

@@ -111,7 +111,7 @@ fi
# Check if there are lines to read
cp "$CONFIGSOURCE" /tempenv
sed -i '/^#/d' /tempenv
sed -i '/^ /d' /tempenv
sed -i '/^[[:space:]]*$/d' /tempenv
sed -i '/^$/d' /tempenv
# Exit if empty
if [ ! -s /tempenv ]; then