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:
authorFelix Fietkau <nbd@openwrt.org>2014-11-23 22:21:14 +0300
committerFelix Fietkau <nbd@openwrt.org>2014-11-23 22:59:49 +0300
commit0bfb44f590402137bfcf8e65c54638908d5ed6d2 (patch)
treec31b67e9311e487dd79c3d6af6efa86d24fd8d59 /sh
parentd59fa8d58844f3d6fad70a540a73ee6290613dd4 (diff)
jshn: shorten JSON_VAR to J_V
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index dab40e4..6bf4be2 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -105,7 +105,7 @@ json_cleanup() {
local unset tmp
_json_get_var unset JSON_UNSET
- for tmp in $unset JSON_VAR; do
+ for tmp in $unset J_V; do
unset \
${JSON_PREFIX}U_$tmp \
${JSON_PREFIX}K_$tmp \
@@ -125,8 +125,8 @@ json_init() {
json_cleanup
export -n ${JSON_PREFIX}JSON_SEQ=0
export -- \
- ${JSON_PREFIX}JSON_CUR="JSON_VAR" \
- ${JSON_PREFIX}K_JSON_VAR=
+ ${JSON_PREFIX}JSON_CUR="J_V" \
+ ${JSON_PREFIX}K_J_V=
}
json_add_object() {
@@ -250,7 +250,7 @@ json_select() {
local cur
[ -z "$1" ] && {
- _json_set_var JSON_CUR "JSON_VAR"
+ _json_set_var JSON_CUR "J_V"
return 0
}
[[ "$1" == ".." ]] && {