Merge pull request #2055 from dcooper16/fix2053

Fix #2053
This commit is contained in:
Dirk Wetter 2021-12-09 17:03:57 +01:00 committed by GitHub
commit 2dce751bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1175,7 +1175,7 @@ fileout_section_header() {
# arg1: whether to end object too
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"
SECTION_FOOTER_NEEDED=false
}