From e1fb89838a8ba8d1d4c60d0d996001e11e9bc075 Mon Sep 17 00:00:00 2001 From: Joaquin Rinaudo Date: Mon, 7 Sep 2020 16:09:10 +0200 Subject: [PATCH] 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 --- prowler | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prowler b/prowler index 593a971e..adc608e3 100755 --- a/prowler +++ b/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