From 5e5edd5c8934384c7fc4071cfa0914bce637e49c Mon Sep 17 00:00:00 2001 From: Dirk Date: Sat, 15 Oct 2016 22:55:24 +0200 Subject: [PATCH] FIX #490 --- testssl.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 6a19c79..2c5b51e 100755 --- a/testssl.sh +++ b/testssl.sh @@ -474,7 +474,15 @@ fileout_header() { else "$do_json" && printf "[\n" > "$JSONFILE" fi - "$do_csv" && [[ ! -f "CSVFILE" ]] && echo "\"id\",\"fqdn/ip\",\"port\",\"severity\",\"finding\"" > "$CSVFILE" + if "$do_csv"; then + if [[ -f "$CSVFILE" ]]; then + # add lf, just for overview + echo >> "$CSVFILE" + else + # create file, with headline + echo "\"id\",\"fqdn/ip\",\"port\",\"severity\",\"finding\"" > "$CSVFILE" + fi + fi else "$do_json" && printf "[\n" > "$JSONFILE" "$do_csv" && echo "\"id\",\"fqdn/ip\",\"port\",\"severity\",\"finding\"" > "$CSVFILE" @@ -8894,4 +8902,4 @@ fi exit $? -# $Id: testssl.sh,v 1.558 2016/10/11 20:30:29 dirkw Exp $ +# $Id: testssl.sh,v 1.559 2016/10/15 20:55:22 dirkw Exp $