From c50137f8f0418a8173392e5e4db3fcd23f151870 Mon Sep 17 00:00:00 2001 From: rmm Date: Sun, 16 Jun 2024 16:16:47 +0200 Subject: [PATCH] Declare response variable for temperature unit as local --- 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 31d943f..7b8c1d6 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -127,7 +127,7 @@ function configure { if (echo "$sensorsOutput" | grep -q "coretemp-"); then # Intel CPU # Prompt user for which temperature to use - choice=$(ask "Do you wish to display temperatures for all cores [C] or just an average temperature per CPU [a]? (C/a)") + local choice=$(ask "Do you wish to display temperatures for all cores [C] or just an average temperature per CPU [a]? (C/a)") case "$choice" in # Set temperature search criteria [cC] | "")