From 8333c575ae6abbd9856cb81c161643c572aa47b5 Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Sat, 17 Aug 2019 15:18:44 +0800 Subject: [PATCH] Fixed issue #348 -e option back to work --- prowler | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prowler b/prowler index c63a698e..ddc56bde 100755 --- a/prowler +++ b/prowler @@ -277,9 +277,12 @@ execute_group_by_id() { done } -# Function to execute all checks in all groups +# Function to execute all checks in all groups except extras if -e is invoked execute_all() { for i in "${!GROUP_TITLE[@]}"; do + if [[ $EXTRAS ]]; then + GROUP_RUN_BY_DEFAULT[7]='N' + fi if [ "${GROUP_RUN_BY_DEFAULT[$i]}" == "Y" ]; then execute_group $i fi