Fix "parameter not set" error

./muninlite: 651: INTERFACE_NAMES_OVERRIDE: parameter not set
This commit is contained in:
Daniel Alder 2023-12-13 17:43:24 +01:00
parent 71cc9a8110
commit 903869d10c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ RES=""
for PLUG in $PLUGINS; do
case "$PLUG" in
if_|if_err_)
if [ -z "$INTERFACE_NAMES_OVERRIDE" ]; then
if [ -z "${INTERFACE_NAMES_OVERRIDE:-}" ]; then
interface_names=$(sed 's/^ *//; s/:.*$//; / /d; /^lo$/d' /proc/net/dev)
else
interface_names="$INTERFACE_NAMES_OVERRIDE"