diff options
author | Luka Perkov <luka@openwrt.org> | 2013-01-08 13:48:01 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-17 16:34:55 +0400 |
commit | 220958b7d9deb41d9ec957acf53c2dc5ef13e0e3 (patch) | |
tree | 2220a50f8da0e1c743e6961ad234c10e2504646f /sh | |
parent | c360ec576c5a0fe85e6665d07a091264b714a399 (diff) |
rename internal variables in json_get_type
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'sh')
-rw-r--r-- | sh/jshn.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -193,12 +193,12 @@ json_dump() { } json_get_type() { - local dest="$1" - local cur + local __dest="$1" + local __cur - _json_get_var cur JSON_CUR - local var="${JSON_PREFIX}TYPE_${cur}_${2//[^a-zA-Z0-9_]/_}" - eval "export -- \"$dest=\${$var}\"; [ -n \"\${$var+x}\" ]" + _json_get_var __cur JSON_CUR + local __var="${JSON_PREFIX}TYPE_${__cur}_${2//[^a-zA-Z0-9_]/_}" + eval "export -- \"$__dest=\${$__var}\"; [ -n \"\${$__var+x}\" ]" } json_get_var() { |