Check execution status of the sensors command

This commit is contained in:
rmm 2024-04-14 13:15:45 +02:00
parent d43912a64f
commit 0bfab4688a

View File

@ -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..."