You've already forked bash-ini-parser
mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-08-06 07:02:37 +03:00
add dynamic DEBUG
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
## bash-ini-parser [](https://travis-ci.org/albfan/bash-ini-parser)
|
## bash-ini-parser
|
||||||
|
[](https://travis-ci.org/albfan/bash-ini-parser)
|
||||||
|
|
||||||
A ini file parser for bash relying only on builtins
|
A ini file parser for bash relying only on builtins
|
||||||
|
|
||||||
@@ -83,6 +84,10 @@ Outputs:
|
|||||||
var6="hoge"
|
var6="hoge"
|
||||||
|
|
||||||
var4 value is "pivo"
|
var4 value is "pivo"
|
||||||
|
|
||||||
|
### Debugging
|
||||||
|
|
||||||
|
declare `BASH_INI_PARSER_DEBUG` and parse will output the ini file processing
|
||||||
|
|
||||||
### Drawbacks
|
### Drawbacks
|
||||||
|
|
||||||
|
@@ -5,7 +5,11 @@
|
|||||||
PREFIX="cfg_section_"
|
PREFIX="cfg_section_"
|
||||||
|
|
||||||
function debug {
|
function debug {
|
||||||
return #abort debug
|
if ! [ -v "BASH_INI_PARSER_DEBUG" ]
|
||||||
|
then
|
||||||
|
#abort debug
|
||||||
|
return
|
||||||
|
fi
|
||||||
echo $*
|
echo $*
|
||||||
echo --start--
|
echo --start--
|
||||||
echo "${ini[*]}"
|
echo "${ini[*]}"
|
||||||
|
Reference in New Issue
Block a user