From 28f26673fc7861bd2d16b2d4ab616946e500eeee Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 29 Jun 2014 14:09:51 +0000 Subject: [PATCH] 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 --- scripts/jw-build-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jw-build-functions.sh b/scripts/jw-build-functions.sh index 65937725..cb02e791 100644 --- a/scripts/jw-build-functions.sh +++ b/scripts/jw-build-functions.sh @@ -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()