From bc90d4158ab18787a6b589dbcb9d9770663eb046 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 21 Sep 2024 10:09:24 +0200 Subject: [PATCH] Improve removal of lines starting with whitespace --- .templates/01-config_yaml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index d508a9d4a..205002848 100755 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -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