From a2556d05280e573cb6686fde2911c890d8b3e4ec Mon Sep 17 00:00:00 2001 From: Wilco de Boer Date: Wed, 14 Jul 2021 23:54:37 +0200 Subject: [PATCH] Make indenting consistent across the rest of the file --- plugins/debian/debsecan_ | 52 ++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/plugins/debian/debsecan_ b/plugins/debian/debsecan_ index b3cc2651..3e18d316 100755 --- a/plugins/debian/debsecan_ +++ b/plugins/debian/debsecan_ @@ -82,14 +82,14 @@ REMOTECRIT=${remote_critical:-10} MODE=$(echo "$0" | sed 's/.*_//') case "${MODE}" in - 'cve') - TITLE_ADD="unique " - FIELD=1 - ;; - 'pkg' | *) - TITLE_ADD="package " - FIELD=2 - ;; + 'cve') + TITLE_ADD="unique " + FIELD=1 + ;; + 'pkg' | *) + TITLE_ADD="package " + FIELD=2 + ;; esac if [ "$1" = "config" ]; then @@ -156,27 +156,27 @@ FIXED=$(printf '%s' "${ALL}" | grep -w '(fixed') # Arguments: Field offset to aggregate by count_entries() { - CUT_FIELD="${1}" - cut -f "${CUT_FIELD}" -d " "| sort | uniq -c + CUT_FIELD="${1}" + cut -f "${CUT_FIELD}" -d " " | sort | uniq -c } case "${MODE}" in - 'cve') - remote_count=$(printf '%s' "${REMOTE}" | count_entries "${FIELD}" | wc -l) - high_count=$(printf '%s' "${HIGH}" | count_entries "${FIELD}" | wc -l) - medium_count=$(printf '%s' "${MEDIUM}" | count_entries "${FIELD}" | wc -l) - low_count=$(printf '%s' "${LOW}" | count_entries "${FIELD}" | wc -l) - other_count=$(printf '%s' "${OTHER}" | count_entries "${FIELD}" | wc -l) - fixed_count=$(printf '%s' "${FIXED}" | count_entries "${FIELD}" | wc -l) - ;; - 'pkg' | *) - remote_count=$(printf '%s' "${REMOTE}" | wc -l) - high_count=$(printf '%s' "${HIGH}" | wc -l) - medium_count=$(printf '%s' "${MEDIUM}" | wc -l) - low_count=$(printf '%s' "${LOW}" | wc -l) - other_count=$(printf '%s' "${OTHER}" | wc -l) - fixed_count=$(printf '%s' "${FIXED}" | wc -l) - ;; + 'cve') + remote_count=$(printf '%s' "${REMOTE}" | count_entries "${FIELD}" | wc -l) + high_count=$(printf '%s' "${HIGH}" | count_entries "${FIELD}" | wc -l) + medium_count=$(printf '%s' "${MEDIUM}" | count_entries "${FIELD}" | wc -l) + low_count=$(printf '%s' "${LOW}" | count_entries "${FIELD}" | wc -l) + other_count=$(printf '%s' "${OTHER}" | count_entries "${FIELD}" | wc -l) + fixed_count=$(printf '%s' "${FIXED}" | count_entries "${FIELD}" | wc -l) + ;; + 'pkg' | *) + remote_count=$(printf '%s' "${REMOTE}" | wc -l) + high_count=$(printf '%s' "${HIGH}" | wc -l) + medium_count=$(printf '%s' "${MEDIUM}" | wc -l) + low_count=$(printf '%s' "${LOW}" | wc -l) + other_count=$(printf '%s' "${OTHER}" | wc -l) + fixed_count=$(printf '%s' "${FIXED}" | wc -l) + ;; esac # Reformat the output of the cut|sort|uniq... to a more human-friendly "item (count)" format