1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-08-09 05:22:44 +03:00

length=${#FUNCNAME/#cfg_section_;[*]}: bad substitution - solution

This commit is contained in:
Pavel Rehak
2018-05-20 16:14:16 +02:00
committed by Alberto Fanjul
parent f444e64fee
commit c59e84c66d

View File

@@ -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