From 0bfab4688ab3d051847d7a044e346b303a283443 Mon Sep 17 00:00:00 2001 From: rmm Date: Sun, 14 Apr 2024 13:15:45 +0200 Subject: [PATCH] Check execution status of the sensors command --- pve-mod-gui-temp.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pve-mod-gui-temp.sh b/pve-mod-gui-temp.sh index a79c66b..735d35c 100644 --- a/pve-mod-gui-temp.sh +++ b/pve-mod-gui-temp.sh @@ -80,6 +80,9 @@ function install_packages { function configure { local sensorOutput=$(sensors -j) + if [ $? -ne 0 ]; then + err "Sensor output error.\n\nCommand output:\n${sensorOutput}\n\nExiting...\n" + fi # Check if HDD/SSD data is installed msg "\nDetecting support for HDD/SDD temperature sensors..."