1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-08-06 07:02:37 +03:00

test invalid ini files

it is break by now

relates to #4
This commit is contained in:
albfan
2015-05-16 21:35:31 +02:00
parent 389ef3f00f
commit 1be6551065
3 changed files with 27 additions and 1 deletions

View File

@@ -53,11 +53,12 @@ function cfg_parser {
ini[${#ini[*]} + 1]='}' # add the last brace
debug
eval "$(echo "${ini[*]}")" # eval the result
EVAL_STATUS=$?
if [ $CHANGE_EXTGLOB = 1 ]
then
shopt -u extglob
fi
return $EVAL_STATUS
}
function cfg_writer {