jw-build-functions.sh: Fix reading sectionless configs

Fix reading config files without sections (i.e. with default
section without a header).

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-06-29 14:09:51 +00:00
commit 28f26673fc

View file

@ -66,7 +66,7 @@ _ytools_cat_section()
return
fi
sed -n '0,/[^ ]*\[/ p' | sed '/[^ ]*\[/ d; /^[ ]*include[ ]/ d' $1
sed -n '0,/[^ ]*\[/ p' $1 | sed '/[^ ]*\[/ d; /^[ ]*include[ ]/ d'
}
_ytools_format_config()