List not listing checks, but executing them. Then only displays the first check per group.

This commit is contained in:
Jeremy Phillips
2018-10-09 08:52:24 -04:00
parent e20b32da0c
commit ad012f8db6

15
prowler
View File

@@ -249,7 +249,7 @@ show_all_titles() {
show_group_title $i
# Display the title of the checks
IFS=',' read -ra CHECKS <<< ${GROUP_CHECKS[$i]}
for j in $CHECKS; do
for j in ${CHECKS[@]}; do
show_check_title $j
done
done
@@ -266,6 +266,12 @@ if [[ $MODE != "csv" ]]; then
prowlerBanner
fi
# List only check tittles
if [[ $PRINTCHECKSONLY == "1" ]]; then
show_all_titles
exit $EXITCODE
fi
# Check that jq is installed for JSON output
if [[ $MODE == "json" ]]; then
. $PROWLER_DIR/include/jq_detector
@@ -302,13 +308,6 @@ if [[ $GROUP_ID_READ ]];then
fi
fi
# List only check tittles
if [[ $PRINTCHECKSONLY == "1" ]]; then
prowlerBanner
show_all_titles
exit $EXITCODE
fi
execute_all
cleanTemp