mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-07-02 20:01:58 +02: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:
@ -1233,6 +1233,8 @@ fileout_json_finding() {
|
|||||||
if [[ "$1" == service ]]; then
|
if [[ "$1" == service ]]; then
|
||||||
if [[ $SERVER_COUNTER -gt 1 ]]; then
|
if [[ $SERVER_COUNTER -gt 1 ]]; then
|
||||||
echo " ," >> "$JSONFILE"
|
echo " ," >> "$JSONFILE"
|
||||||
|
elif ! "$FIRST_FINDING"; then
|
||||||
|
echo -n "," >> "$JSONFILE"
|
||||||
fi
|
fi
|
||||||
target="$NODE"
|
target="$NODE"
|
||||||
$do_mx_all_ips && target="$URI"
|
$do_mx_all_ips && target="$URI"
|
||||||
|
Reference in New Issue
Block a user