diff --git a/bash-ini-parser b/bash-ini-parser index 23384e0..daa98bc 100755 --- a/bash-ini-parser +++ b/bash-ini-parser @@ -92,6 +92,7 @@ function cfg_writer { item="$(declare -f ${f})" item="${item##*\{}" # remove function definition item="${item##*FUNCNAME*$PREFIX\};}" # remove clear section + item="${item/FUNCNAME\/#$PREFIX;}" # remove line item="${item/\}}" # remove function close item="${item%)*}" # remove everything after parenthesis item="${item});" # add close parenthesis