From 24e691901e94d94f10336026a1f35dbc0fa1cb27 Mon Sep 17 00:00:00 2001 From: Marc Jay Date: Sun, 12 Apr 2020 17:17:46 +0100 Subject: [PATCH] Convert tabs to spaces within modified function --- prowler | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/prowler b/prowler index 458abbad..d7ed2b93 100755 --- a/prowler +++ b/prowler @@ -355,13 +355,13 @@ get_all_checks_without_exclusion() { CHECKS_TO_EXCLUDE+=($E_CHECK) done # Get a list of total checks available by ID - for i in "${!GROUP_TITLE[@]}"; do - # show_group_title $i - IFS=',' read -ra CHECKS <<< ${GROUP_CHECKS[$i]} - for j in ${CHECKS[@]}; do + for i in "${!GROUP_TITLE[@]}"; do + # show_group_title $i + IFS=',' read -ra CHECKS <<< ${GROUP_CHECKS[$i]} + for j in ${CHECKS[@]}; do TOTAL_CHECKS+=($CHECK_ID_$j) - done - done + done + done # Remove duplicates whilst preserving the order of checks, and store the result as an array TOTAL_CHECKS=($(echo "${TOTAL_CHECKS[*]}" | tr ' ' '\n' | awk '!seen[$0]++')) # Create a list that contains all checks but excluded ones