1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Properly indent heredocs

This commit is contained in:
Wilco de Boer 2021-07-14 23:48:41 +02:00
parent e2b04d0b46
commit 31149eb05d

View file

@ -93,7 +93,7 @@ case "${MODE}" in
esac
if [ "$1" = "config" ]; then
cat <<EOF_
cat <<- EOF
graph_title DebSecan: ${TITLE_ADD}vulnerabilities
graph_info ${TITLE_ADD}vulnerabilities for ${SUITE}
graph_args -l 0 --base 1000
@ -140,7 +140,7 @@ fixed.min 0
fixed.info The number of ${TITLE_ADD}CVEs fixed by available updates
fixed.warning ${FIXEDWARN}
fixed.critical ${FIXEDCRIT}
EOF_
EOF
exit 0
fi
@ -182,7 +182,7 @@ esac
# Reformat the output of the cut|sort|uniq... to a more human-friendly "item (count)" format
CVECOUNTRE='s/^ *\([0-9]\+\) \+\([^ ]\+\)/\2 (\1)/'
cat <<EOF
cat <<- EOF
remote.value $remote_count
remote.extinfo $(printf '%s' "${REMOTE}" | count_entries "${FIELD}" | sort -nr | sed "${CVECOUNTRE}" | xargs)
high.value $high_count