Print Section B only if it contains remediation measures

This commit is contained in:
Razvan Stoica 2021-03-11 09:26:31 +02:00
parent 82bbe1d562
commit b3a36e8d94

View file

@ -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"