mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
consistently open the file with echo here as well
see CSVFILE (and request #822)
This commit is contained in:
parent
90cd8cd3e2
commit
fad8c631ef
@ -838,8 +838,8 @@ json_header() {
|
|||||||
JSONHEADER=false
|
JSONHEADER=false
|
||||||
else
|
else
|
||||||
[[ -e "$JSONFILE" ]] && fatal "\"$JSONFILE\" exists. Either use \"--append\" or (re)move it" 1
|
[[ -e "$JSONFILE" ]] && fatal "\"$JSONFILE\" exists. Either use \"--append\" or (re)move it" 1
|
||||||
"$do_json" && printf "[\n" > "$JSONFILE"
|
"$do_json" && echo "[" > "$JSONFILE"
|
||||||
"$do_pretty_json" && printf "{\n" > "$JSONFILE"
|
"$do_pretty_json" && echo "{\n" > "$JSONFILE"
|
||||||
fi
|
fi
|
||||||
#FIRST_FINDING=false
|
#FIRST_FINDING=false
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user