This commit is contained in:
Dirk 2017-11-19 23:13:33 +01:00
parent cce48a34d0
commit 209b21c817
1 changed files with 2 additions and 1 deletions

View File

@ -641,7 +641,8 @@ strip_quote() {
fileout_json_footer() { fileout_json_footer() {
if "$do_json"; then if "$do_json"; then
fileout_json_finding "scanTime" "INFO" "$SCAN_TIME" "" "" "" # no scan time in --severity=low and above, also needed for Travis. Bit hackish...
[[ $SEVERITY_LEVEL -lt $LOW ]] && fileout_json_finding "scanTime" "INFO" "$SCAN_TIME" "" "" ""
printf "]\n" >> "$JSONFILE" printf "]\n" >> "$JSONFILE"
fi fi
"$do_pretty_json" && echo -e " ], "$do_pretty_json" && echo -e " ],