mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-28 12:29:44 +01:00
Fix #2198
This commit fixes #2198 by ensuring that a comma is added before "service" finding if $FIRST_FINDING is false.
This commit is contained in:
parent
730c758488
commit
4dae3895e4
@ -1233,6 +1233,8 @@ fileout_json_finding() {
|
||||
if [[ "$1" == service ]]; then
|
||||
if [[ $SERVER_COUNTER -gt 1 ]]; then
|
||||
echo " ," >> "$JSONFILE"
|
||||
elif ! "$FIRST_FINDING"; then
|
||||
echo -n "," >> "$JSONFILE"
|
||||
fi
|
||||
target="$NODE"
|
||||
$do_mx_all_ips && target="$URI"
|
||||
|
Loading…
Reference in New Issue
Block a user