From: Felix Fietkau Date: Wed, 30 Oct 2013 09:55:01 +0000 (+0100) Subject: jshn: do not export SEQ_* X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=2d4ce122c4b515ef9f116952151f3a6986b6c957;hp=1a32939cb5ad3fabed9d78c030e2746cdbbdc038 jshn: do not export SEQ_* Signed-off-by: Felix Fietkau --- diff --git a/sh/jshn.sh b/sh/jshn.sh index 3aff5ea..93fbec2 100644 --- a/sh/jshn.sh +++ b/sh/jshn.sh @@ -103,7 +103,7 @@ _json_add_table() { local table="JSON_$itype$seq" _json_set_var "UP_$table" "$cur" _json_export "KEYS_$table" "" - [ "$itype" = "ARRAY" ] && _json_export "SEQ_$table" "" + [ "$itype" = "ARRAY" ] && _json_set_var "SEQ_$table" "" _json_set_var JSON_CUR "$table" _jshn_append "JSON_UNSET" "$table"