From fad8c631ef4b36a0a028ef560f86a21979a358c7 Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 15 Sep 2017 15:09:13 +0200 Subject: [PATCH] consistently open the file with echo here as well see CSVFILE (and request #822) --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 26cddc4..eca34eb 100755 --- a/testssl.sh +++ b/testssl.sh @@ -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