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-24 01:53:37 +0300
committerFelix Fietkau <nbd@openwrt.org>2014-11-24 01:53:44 +0300
commitf09ae76445e32511433fdab0a1bcda73aa84986d (patch)
tree0b88725f5cd6355f0f278309444878b0793a3589 /sh
parent0bfb44f590402137bfcf8e65c54638908d5ed6d2 (diff)
Revert "jshn: only keep UP_* variables around while they are needed"
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 6bf4be2..bf76edb 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -90,7 +90,6 @@ _json_close_table() {
_json_get_var _s_cur JSON_CUR
_json_get_var "${JSON_PREFIX}JSON_CUR" "U_$_s_cur"
- unset "${JSON_PREFIX}U_$_s_cur"
}
json_set_namespace() {
@@ -256,7 +255,6 @@ json_select() {
[[ "$1" == ".." ]] && {
_json_get_var cur JSON_CUR
_json_get_var cur "U_$cur"
- unset "${JSON_PREFIX}U_$cur"
_json_set_var JSON_CUR "$cur"
return 0
}
@@ -264,7 +262,6 @@ json_select() {
case "$type" in
object|array)
json_get_var cur "$target"
- _json_get_var "${JSON_PREFIX}U_$cur" JSON_CUR
_json_set_var JSON_CUR "$cur"
;;
*)