mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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:
parent
a065d9617c
commit
28f26673fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue