mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
Print Section B only if it contains remediation measures
This commit is contained in:
parent
82bbe1d562
commit
b3a36e8d94
1 changed files with 4 additions and 2 deletions
|
@ -196,8 +196,10 @@ main () {
|
|||
fi
|
||||
done
|
||||
|
||||
logit "\n\n${bldylw}Section B - Remediation measures${txtrst}"
|
||||
logit "${globalRemediation}"
|
||||
if [ -n "${globalRemediation}" ]; then
|
||||
logit "\n\n${bldylw}Section B - Remediation measures${txtrst}"
|
||||
logit "${globalRemediation}"
|
||||
fi
|
||||
|
||||
logit "\n\n${bldylw}Section C - Score${txtrst}\n"
|
||||
info "Checks: $totalChecks"
|
||||
|
|
Loading…
Reference in a new issue