From 6c0e1a13e346e838fbb78c9cd5eda9e9824d0aa1 Mon Sep 17 00:00:00 2001 From: Joaquin Rinaudo Date: Tue, 1 Sep 2020 16:36:07 +0200 Subject: [PATCH] feature: Only when custom checks are set --- prowler | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/prowler b/prowler index c4e89d6e..e4af677a 100755 --- a/prowler +++ b/prowler @@ -416,10 +416,12 @@ execute_all() { execute_group $i fi done - for checks in $(ls $EXTERNAL_CHECKS_PATH/check*); do - CHECK_ID=$(echo $checks | awk -F '_' '{ print $2 }') - execute_check $CHECK_ID - done + if [[ $EXTERNAL_CHECKS_PATH ]]; then + for checks in $(ls $EXTERNAL_CHECKS_PATH/check*); do + CHECK_ID=$(echo $checks | awk -F '_' '{ print $2 }') + execute_check $CHECK_ID + done + fi } # Function to show the titles of either all checks or only those in the specified group