From bb320e47d786e73270820cf2ed2db03b9b295a3c Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Fri, 3 Jul 2026 17:05:14 -0400 Subject: [PATCH] nut: minor fixes found via automated code review * Fixes a missing word in a comment * Fixes inconsistent indentation in sample configurations * Drops redundant default assignment in find_statepath() Signed-off-by: Daniel F. Dickinson --- net/nut/files/nut-service.sh.functions | 3 +-- net/nut/files/nut_monitor | 4 ++-- net/nut/files/nut_server | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/net/nut/files/nut-service.sh.functions b/net/nut/files/nut-service.sh.functions index fda69ce608..7ca0da4f15 100644 --- a/net/nut/files/nut-service.sh.functions +++ b/net/nut/files/nut-service.sh.functions @@ -210,7 +210,6 @@ find_statepath() { local nut_value_via_foreach="" find_foreach_value "$section_type" "$package" statepath "$NUT_BASE_STATEPATH" || return 1 - [ -n "$nut_value_via_foreach" ] || nut_value_via_foreach="$NUT_BASE_STATEPATH" # shellcheck disable=2034 STATEPATH="$nut_value_via_foreach" @@ -299,7 +298,7 @@ interface_triggers() { for interface in $interfaces; do # We use the variadic third and fourth parameters of procd_add_interface_trigger to # restart instead of reload on interface up/down events. Additionally the variadic - # fifth and parameters of procd_add_interface_trigger are passed through to + # fifth and following parameters of procd_add_interface_trigger are passed through to # the