mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
ini-tools.sh: Now only acception [section]s with leading spaces as delimiter
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ccde4a078c
commit
509d78af00
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ ini_section()
|
|||
cat "$inifile" |
|
||||
cut -d\# -f1 |
|
||||
tr -s '\n' '\n' |
|
||||
sed -n "/\[$sec\]/,/\[/ p" |
|
||||
grep -v '\[' |
|
||||
sed -n "/^ *\[$sec\]/,/^ *\[/ p" |
|
||||
grep -v '^ *\[' |
|
||||
sed '/^ *$/ d'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue