projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a97eb
)
same for json_get_var
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 09:46:44 +0000
(11:46 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 09:46:44 +0000
(11:46 +0200)
sh/jshn.sh
patch
|
blob
|
history
diff --git
a/sh/jshn.sh
b/sh/jshn.sh
index
8ecefcf
..
d325460
100644
(file)
--- 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}\""
}