move getWhoami to position where it will run before any checks

This restores the AWS account number in the CSV output when running
checks or groups.
This commit is contained in:
MrSecure
2018-04-20 15:55:51 -05:00
parent 7ba6080522
commit d1693e0f3d

View File

@@ -256,6 +256,9 @@ show_all_titles() {
done
}
# Gather account data / test aws cli connectivity
getWhoami
# Execute single check if called with -c
if [[ $CHECK_ID ]];then
execute_check $CHECK_ID
@@ -285,7 +288,6 @@ if [[ $MODE != "csv" ]]; then
prowlerBanner
fi
getWhoami
genCredReport
saveReport
execute_all