From b2d742b2439a3c57ae0d0199d9628d52f2191d18 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 27 Apr 2017 12:17:13 +1000 Subject: [PATCH] [debian/debsecan_] Quote stragglers Signed-off-by: Olivier Mehani --- plugins/debian/debsecan_ | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/debian/debsecan_ b/plugins/debian/debsecan_ index b563116b..a3a381b4 100755 --- a/plugins/debian/debsecan_ +++ b/plugins/debian/debsecan_ @@ -145,18 +145,18 @@ FIXED=$(echo "${ALL}" | grep -w '(fixed') # Arguments: Field offset to aggregate by count_entries() { - CUT_FIELD=${1} + CUT_FIELD="${1}" cut -f "${CUT_FIELD}" -d " "| sort | uniq -c } case "${MODE}" in 'cve') - remote_count=$(echo "${REMOTE}" | count_entries ${FIELD} | wc -l) - high_count=$(echo "${HIGH}" | count_entries ${FIELD} | wc -l) - medium_count=$(echo "${MEDIUM}" | count_entries ${FIELD} | wc -l) - low_count=$(echo "${LOW}" | count_entries ${FIELD} | wc -l) - other_count=$(echo "${OTHER}" | count_entries ${FIELD} | wc -l) - fixed_count=$(echo "${FIXED}" | count_entries ${FIELD} | wc -l) + remote_count=$(echo "${REMOTE}" | count_entries "${FIELD}" | wc -l) + high_count=$(echo "${HIGH}" | count_entries "${FIELD}" | wc -l) + medium_count=$(echo "${MEDIUM}" | count_entries "${FIELD}" | wc -l) + low_count=$(echo "${LOW}" | count_entries "${FIELD}" | wc -l) + other_count=$(echo "${OTHER}" | count_entries "${FIELD}" | wc -l) + fixed_count=$(echo "${FIXED}" | count_entries "${FIELD}" | wc -l) ;; 'pkg' | *) remote_count=$(echo "${REMOTE}" | wc -l) @@ -175,15 +175,15 @@ CVECOUNTRE="s/^ *\([0-9]\+\) \+\([^ ]\+\)/\2 (\1)/" # The nested $(echo ...)s are needed to yet the newlines cat <