mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
List not listing checks, but executing them. Then only displays the first check per group.
This commit is contained in:
15
prowler
15
prowler
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user