same for json_get_var
This commit is contained in:
parent
a1a97eb11e
commit
738884e746
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ json_get_type() {
|
|||
|
||||
json_get_var() {
|
||||
local dest="$1"
|
||||
local var="$2"
|
||||
local var="$(echo -n "$2" | tr -C '[a-zA-Z_]' _)"
|
||||
eval "export -- \"$dest=\${${JSON_CUR}_$var}\""
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue