1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Source the os-release file in a subshell

This commit is contained in:
Wilco de Boer 2021-07-15 00:11:59 +02:00
parent a2556d0528
commit d8dba4936e

View file

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