same for json_get_var

This commit is contained in:
Felix Fietkau 2011-09-11 11:46:44 +02:00
parent a1a97eb11e
commit 738884e746

View file

@ -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}\""
}