From abf1c8d0970770f1b4ea317d11424dbf62964f0a Mon Sep 17 00:00:00 2001 From: Meliox Date: Wed, 5 Jul 2023 19:34:41 +0200 Subject: [PATCH] Disable hddtemp if info not found in sensor -j output. Fixes: "[: =: unary operator expected" --- pve-mod-gui-temp.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pve-mod-gui-temp.sh b/pve-mod-gui-temp.sh index 4b36008..5a4be45 100644 --- a/pve-mod-gui-temp.sh +++ b/pve-mod-gui-temp.sh @@ -91,6 +91,8 @@ function configure { warn "Kernel module \"drivetemp\" is not installed. HDD/SDD temperatures will not be available." enableHddTemp=false fi + else + enableHddTemp=false fi # Check if NVMe data is available