mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +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" || fileout_separator # this is needed for appended output, see #687
|
||||||
first=false
|
first=false
|
||||||
cat "$TEMPDIR/jsonfile_child.json" >> "$JSONFILE"
|
cat "$TEMPDIR/jsonfile_child.json" >> "$JSONFILE"
|
||||||
|
FIRST_FINDING=false
|
||||||
fi
|
fi
|
||||||
done < "${FNAME}"
|
done < "${FNAME}"
|
||||||
return $?
|
return $?
|
||||||
@ -14555,6 +14556,7 @@ get_next_message_testing_parallel_result() {
|
|||||||
# produced some JSON output.
|
# produced some JSON output.
|
||||||
"$FIRST_JSON_OUTPUT" || fileout_separator # this is needed for appended output, see #687
|
"$FIRST_JSON_OUTPUT" || fileout_separator # this is needed for appended output, see #687
|
||||||
FIRST_JSON_OUTPUT=false
|
FIRST_JSON_OUTPUT=false
|
||||||
|
FIRST_FINDING=false
|
||||||
cat "$TEMPDIR/jsonfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).json" >> "$JSONFILE"
|
cat "$TEMPDIR/jsonfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).json" >> "$JSONFILE"
|
||||||
fi
|
fi
|
||||||
"$CSVHEADER" && cat "$TEMPDIR/csvfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).csv" >> "$CSVFILE"
|
"$CSVHEADER" && cat "$TEMPDIR/csvfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).csv" >> "$CSVFILE"
|
||||||
|
Loading…
Reference in New Issue
Block a user