mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-31 22:09:44 +01:00
Merge pull request #925 from seccubus/json_footer_breaks_json
JSOn output is broken by the JSON footer in combination with mass mode
This commit is contained in:
commit
7e62dc3192
@ -14534,6 +14534,7 @@ run_mass_testing() {
|
||||
"$first" || fileout_separator # this is needed for appended output, see #687
|
||||
first=false
|
||||
cat "$TEMPDIR/jsonfile_child.json" >> "$JSONFILE"
|
||||
FIRST_FINDING=false
|
||||
fi
|
||||
done < "${FNAME}"
|
||||
return $?
|
||||
@ -14555,6 +14556,7 @@ get_next_message_testing_parallel_result() {
|
||||
# produced some JSON output.
|
||||
"$FIRST_JSON_OUTPUT" || fileout_separator # this is needed for appended output, see #687
|
||||
FIRST_JSON_OUTPUT=false
|
||||
FIRST_FINDING=false
|
||||
cat "$TEMPDIR/jsonfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).json" >> "$JSONFILE"
|
||||
fi
|
||||
"$CSVHEADER" && cat "$TEMPDIR/csvfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).csv" >> "$CSVFILE"
|
||||
|
Loading…
Reference in New Issue
Block a user