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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 70c3aa3..1c35711 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -197,7 +197,7 @@ json_get_type() {
local cur
_json_get_var cur JSON_CUR
- local var="${JSON_PREFIX}TYPE_${cur}_$2"
+ local var="${JSON_PREFIX}TYPE_${cur}_${2//[^a-zA-Z0-9_]/_}"
eval "export -- \"$dest=\${$var}\"; [ -n \"\${$var+x}\" ]"
}