From 4d0a00c82c77a9395c992841237e2c06c4606a5e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 18 Dec 2012 13:38:27 +0100 Subject: [PATCH] jshn: fix check to reset array sequence counters on cleanup --- sh/jshn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/jshn.sh b/sh/jshn.sh index 39d5331..70c3aa3 100644 --- a/sh/jshn.sh +++ b/sh/jshn.sh @@ -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 -- 2.25.1