Declare response variable for temperature unit as local

This commit is contained in:
rmm 2024-06-16 16:16:47 +02:00
parent 77a6df7092
commit c50137f8f0

View File

@ -127,7 +127,7 @@ function configure {
if (echo "$sensorsOutput" | grep -q "coretemp-"); then if (echo "$sensorsOutput" | grep -q "coretemp-"); then
# Intel CPU # Intel CPU
# Prompt user for which temperature to use # 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 case "$choice" in
# Set temperature search criteria # Set temperature search criteria
[cC] | "") [cC] | "")