feature: Only when custom checks are set

This commit is contained in:
Joaquin Rinaudo
2020-09-01 16:36:07 +02:00
parent 0eab753620
commit 6c0e1a13e3

10
prowler
View File

@@ -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