From 39ec8804322c5fcc51a510ad9bff53529b6b1f13 Mon Sep 17 00:00:00 2001 From: Stefano Stella Date: Sun, 5 Oct 2025 19:50:59 +0200 Subject: [PATCH] Fix #138 #141 The variable `upsConnection` was defined as local inside the `configure` function but was then needed by a subequent `collect_ups_output` so the needed scope is moved to the parent `install_mod` function. --- pve-mod-gui-sensors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index cc7d0a9..f4334be 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -123,7 +123,6 @@ function configure { local sanitisedSensorsOutput local upsOutput local modelName - local upsConnection install_packages @@ -379,6 +378,7 @@ function configure { # Function to install the modification function install_mod { + local upsConnection msgb "\n=== Preparing mod installation ===" check_root_privileges check_mod_installation