rename internal variables in json_get_type
authorLuka Perkov <luka@openwrt.org>
Tue, 8 Jan 2013 09:48:01 +0000 (10:48 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 17 Jan 2013 12:34:55 +0000 (13:34 +0100)
Signed-off-by: Luka Perkov <luka@openwrt.org>
sh/jshn.sh

index 1c357110b3eac7e1001ddae18fc963f04bda2c47..1d9fc8084466444a95a4b379813233e154ac8ce7 100644 (file)
@@ -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() {