From 520966f776858570f1d2b9c5c14c5909b16a5a76 Mon Sep 17 00:00:00 2001 From: AlGreed Date: Wed, 14 Dec 2016 12:09:23 +0100 Subject: [PATCH] color=0 for json and csv formats to avoid escape characters in a report --- testssl.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testssl.sh b/testssl.sh index 585e062..89feade 100755 --- a/testssl.sh +++ b/testssl.sh @@ -10830,18 +10830,22 @@ parse_cmd_line() { do_logging=true ;; --json) + COLOR=0 do_json=true ;; # DEFINITION of JSONFILE is not arg specified: automagically in parse_hn_port() # following does the same but we can specify a log location additionally --jsonfile|--jsonfile=*) + COLOR=0 JSONFILE=$(parse_opt_equal_sign "$1" "$2") [[ $? -eq 0 ]] && shift do_json=true ;; --json-pretty) + COLOR=0 do_pretty_json=true ;; --jsonfile-pretty|--jsonfile-pretty=*) + COLOR=0 JSONFILE=$(parse_opt_equal_sign "$1" "$2") [[ $? -eq 0 ]] && shift do_pretty_json=true @@ -10854,10 +10858,12 @@ parse_cmd_line() { GIVE_HINTS=true ;; --csv) + COLOR=0 do_csv=true ;; # DEFINITION of CSVFILE is not arg specified: automagically in parse_hn_port() # following does the same but we can specify a log location additionally --csvfile|--csvfile=*) + COLOR=0 CSVFILE=$(parse_opt_equal_sign "$1" "$2") [[ $? -eq 0 ]] && shift do_csv=true