fixed banner on -g option

This commit is contained in:
Toni de la Fuente
2018-04-20 17:36:54 -04:00
parent 60bfb31a19
commit 2afbda53b2
2 changed files with 6 additions and 9 deletions

View File

@@ -13,12 +13,10 @@
GROUP_ID[9]='gdpr'
GROUP_NUMBER[9]='8.0'
GROUP_TITLE[9]='GDPR Readiness - [gdpr] ****************************************'
GROUP_TITLE[9]='GDPR Readiness - WORK IN PROGRESS!! - [gdpr] *******************'
GROUP_RUN_BY_DEFAULT[9]='N' # run it when execute_all is called
GROUP_CHECKS[9]='extra718,extra725,extra727,check12,check113,check114,extra71,check25,check39,check21,check22,check23,check24,check26,check27,check35,extra726,extra714,extra715,extra717,extra719,extra720,extra721,extra722,check43,check25,extra714,extra729'
# WORK IN PROGRESS!! see https://github.com/toniblyx/prowler/issues/189
# Resources:
# https://d1.awsstatic.com/whitepapers/compliance/GDPR_Compliance_on_AWS.pdf
# https://www.slideshare.net/AmazonWebServices/sid303-navigating-gdpr-compliance-on-aws

11
prowler
View File

@@ -227,7 +227,6 @@ execute_group_by_id() {
genCredReport
saveReport
fi
prowlerBanner
for i in "${!GROUP_ID[@]}"; do
if [ "${GROUP_ID[$i]}" == "$1" ]; then
execute_group $i
@@ -256,6 +255,11 @@ show_all_titles() {
done
}
### All functions defined above ... run the workflow
if [[ $MODE != "csv" ]]; then
prowlerBanner
fi
# Gather account data / test aws cli connectivity
getWhoami
@@ -283,11 +287,6 @@ if [[ $PRINTCHECKSONLY == "1" ]]; then
exit $EXITCODE
fi
### All functions defined above ... run the workflow
if [[ $MODE != "csv" ]]; then
prowlerBanner
fi
genCredReport
saveReport
execute_all