Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 1c35711..1d9fc80 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -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() {