consistently open the file with echo here as well

see CSVFILE (and request #822)
This commit is contained in:
Dirk 2017-09-15 15:09:13 +02:00
parent 90cd8cd3e2
commit fad8c631ef

View File

@ -838,8 +838,8 @@ json_header() {
JSONHEADER=false
else
[[ -e "$JSONFILE" ]] && fatal "\"$JSONFILE\" exists. Either use \"--append\" or (re)move it" 1
"$do_json" && printf "[\n" > "$JSONFILE"
"$do_pretty_json" && printf "{\n" > "$JSONFILE"
"$do_json" && echo "[" > "$JSONFILE"
"$do_pretty_json" && echo "{\n" > "$JSONFILE"
fi
#FIRST_FINDING=false
return 0