Merge pull request #656 from dcooper16/show_finding
Add spaces in show_finding()
This commit is contained in:
commit
c148a93361
18
testssl.sh
18
testssl.sh
|
@ -297,14 +297,14 @@ set_severity_level() {
|
||||||
show_finding() {
|
show_finding() {
|
||||||
local severity=$1
|
local severity=$1
|
||||||
|
|
||||||
([[ "$severity" == "DEBUG" ]]) ||
|
( [[ "$severity" == "DEBUG" ]] ) ||
|
||||||
([[ "$severity" == "WARN" ]]) ||
|
( [[ "$severity" == "WARN" ]] ) ||
|
||||||
([[ "$severity" == "INFO" ]] && [[ $SEVERITY_LEVEL -le $INFO ]]) ||
|
( [[ "$severity" == "INFO" ]] && [[ $SEVERITY_LEVEL -le $INFO ]] ) ||
|
||||||
([[ "$severity" == "OK" ]] && [[ $SEVERITY_LEVEL -le $OK ]]) ||
|
( [[ "$severity" == "OK" ]] && [[ $SEVERITY_LEVEL -le $OK ]] ) ||
|
||||||
([[ "$severity" == "LOW" ]] && [[ $SEVERITY_LEVEL -le $LOW ]]) ||
|
( [[ "$severity" == "LOW" ]] && [[ $SEVERITY_LEVEL -le $LOW ]] ) ||
|
||||||
([[ "$severity" == "MEDIUM" ]] && [[ $SEVERITY_LEVEL -le $MEDIUM ]]) ||
|
( [[ "$severity" == "MEDIUM" ]] && [[ $SEVERITY_LEVEL -le $MEDIUM ]] ) ||
|
||||||
([[ "$severity" == "HIGH" ]] && [[ $SEVERITY_LEVEL -le $HIGH ]]) ||
|
( [[ "$severity" == "HIGH" ]] && [[ $SEVERITY_LEVEL -le $HIGH ]] ) ||
|
||||||
([[ "$severity" == "CRITICAL" ]] && [[ $SEVERITY_LEVEL -le $CRITICAL ]])
|
( [[ "$severity" == "CRITICAL" ]] && [[ $SEVERITY_LEVEL -le $CRITICAL ]] )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -838,7 +838,7 @@ fileout_json_finding() {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_json_format() {
|
is_json_format() {
|
||||||
([[ -f "$JSONFILE" ]] && ("$do_json" || "$do_pretty_json"))
|
( [[ -f "$JSONFILE" ]] && ("$do_json" || "$do_pretty_json") )
|
||||||
}
|
}
|
||||||
|
|
||||||
################# JSON FILE FORMATING END ####################
|
################# JSON FILE FORMATING END ####################
|
||||||
|
|
Loading…
Reference in New Issue