diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-18 16:38:27 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-18 16:38:27 +0400 |
commit | 4d0a00c82c77a9395c992841237e2c06c4606a5e (patch) | |
tree | b596016f88c6827440abc2c47bdd0633117a9b90 /sh | |
parent | 0505bf5f424cb5ba607c06cd821c1593fd7a2bef (diff) |
jshn: fix check to reset array sequence counters on cleanup
Diffstat (limited to 'sh')
-rw-r--r-- | sh/jshn.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -103,7 +103,7 @@ _json_add_table() { local table="JSON_$itype$seq" _json_export "UP_$table" "$cur" _json_export "KEYS_$table" "" - [ "$TYPE" = "ARRAY" ] && _json_export "SEQ_$table" "" + [ "$itype" = "ARRAY" ] && _json_export "SEQ_$table" "" _json_stack_push "$table" _json_get_var new_cur JSON_CUR |