mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-02-07 08:11:16 +01:00
Fix flat JSON file
PR #2140 contains a bug when handling flat JSON files. FIRST_FINDING should only be set to true in the case of structured JSON output, since it is only in that case that fileout_insert_warning() appends a comma to the JSON file. This commit fixes the problem.
This commit is contained in:
parent
46b66c777a
commit
09973c8c44
@ -1313,8 +1313,8 @@ fileout_insert_warning() {
|
||||
else
|
||||
echo -e ", " >>"$JSONFILE"
|
||||
fi
|
||||
fi
|
||||
FIRST_FINDING=true
|
||||
fi
|
||||
}
|
||||
|
||||
fileout_csv_finding() {
|
||||
|
Loading…
Reference in New Issue
Block a user