mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
FIX #490
This commit is contained in:
parent
6abca0c598
commit
5e5edd5c89
12
testssl.sh
12
testssl.sh
@ -474,7 +474,15 @@ fileout_header() {
|
|||||||
else
|
else
|
||||||
"$do_json" && printf "[\n" > "$JSONFILE"
|
"$do_json" && printf "[\n" > "$JSONFILE"
|
||||||
fi
|
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
|
else
|
||||||
"$do_json" && printf "[\n" > "$JSONFILE"
|
"$do_json" && printf "[\n" > "$JSONFILE"
|
||||||
"$do_csv" && echo "\"id\",\"fqdn/ip\",\"port\",\"severity\",\"finding\"" > "$CSVFILE"
|
"$do_csv" && echo "\"id\",\"fqdn/ip\",\"port\",\"severity\",\"finding\"" > "$CSVFILE"
|
||||||
@ -8894,4 +8902,4 @@ fi
|
|||||||
exit $?
|
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 $
|
||||||
|
Loading…
Reference in New Issue
Block a user