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

Actually, echo suite even when sourcing os-release fails

This commit is contained in:
Wilco de Boer 2021-07-15 00:18:55 +02:00
parent d8dba4936e
commit 5c048c989f

View file

@ -73,7 +73,10 @@ if [ ! -x /usr/bin/debsecan ]; then
fi
# Suite is taken from environment but defaults to `os-release` content
SUITE=$(. /etc/os-release && echo "${suite:-$VERSION_CODENAME}")
SUITE=$(
. /etc/os-release
echo "${suite:-$VERSION_CODENAME}"
)
FIXEDWARN=${fixed_warning:-1}
FIXEDCRIT=${fixed_critical:-1000}