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
diff options
context:
space:
mode:
Diffstat (limited to 'sh/jshn.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 8ecefcf..d325460 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -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}\""
}