mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Fix execute_group_by_id
* All other group checks for IAM have no credential report.
* ${GROUP_ID[$1]} is invalid as first parameter is group_id
This commit is contained in:
5
prowler
5
prowler
@@ -395,11 +395,10 @@ execute_group() {
|
||||
|
||||
# Function to execute group by name
|
||||
execute_group_by_id() {
|
||||
if [ "${GROUP_ID[$1]}" == "group1" ]; then
|
||||
|
||||
genCredReport
|
||||
saveReport
|
||||
fi
|
||||
for i in "${!GROUP_ID[@]}"; do
|
||||
for i in "${!GROUP_ID[@]}"; do
|
||||
if [ "${GROUP_ID[$i]}" == "$1" ]; then
|
||||
execute_group ${i} $2
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user