This commit fixes #2053 by setting $FIRST_FINDING to false after a section footer is output.
This commit is contained in:
David Cooper 2021-12-02 09:31:54 -05:00
parent 0118603401
commit ff8e9f49cc
1 changed files with 1 additions and 1 deletions

View File

@ -1175,7 +1175,7 @@ fileout_section_header() {
# arg1: whether to end object too # arg1: whether to end object too
fileout_section_footer() { fileout_section_footer() {
"$do_pretty_json" && printf "\n ]" >> "$JSONFILE" "$do_pretty_json" && FIRST_FINDING=false && printf "\n ]" >> "$JSONFILE"
"$do_pretty_json" && "$1" && echo -e "\n }" >> "$JSONFILE" "$do_pretty_json" && "$1" && echo -e "\n }" >> "$JSONFILE"
SECTION_FOOTER_NEEDED=false SECTION_FOOTER_NEEDED=false
} }