From 41bde4d4eabffd9307d957ebeb2b83d5059aa996 Mon Sep 17 00:00:00 2001 From: Meliox <5264368+Meliox@users.noreply.github.com> Date: Sat, 6 Sep 2025 23:19:00 +0200 Subject: [PATCH] Make UPS be disable as default selection (#122) --- pve-mod-gui-sensors.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index 8b67e13..02aa155 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -248,9 +248,9 @@ function configure { fi #### UPS #### - local choiceUPS=$(ask "Enable UPS information? (Y/n)") + local choiceUPS=$(ask "Enable UPS information? (y/N)") case "$choiceUPS" in - [yY]|"") + [yY]) if [ "$DEBUG_REMOTE" = true ]; then upsOutput=$(cat "$DEBUG_UPS_FILE") echo "Remote debugging: UPS readings from $DEBUG_UPS_FILE" @@ -272,12 +272,12 @@ function configure { ENABLE_UPS=false fi ;; - [nN]) + [nN]|"") ENABLE_UPS=false - info "UPS information will NOT be displayed." + info "UPS information will not be displayed." ;; *) - warn "Invalid selection. UPS info will NOT be displayed." + warn "Invalid selection. UPS info will not be displayed." ENABLE_UPS=false ;; esac