Merge pull request #24 from Meliox/integration-eremem

Check execution status of the sensors command
This commit is contained in:
eremem 2024-04-14 13:20:05 +02:00 committed by GitHub
commit d9e6a9c539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,9 @@ function install_packages {
function configure { function configure {
local sensorOutput=$(sensors -j) 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 # Check if HDD/SSD data is installed
msg "\nDetecting support for HDD/SDD temperature sensors..." msg "\nDetecting support for HDD/SDD temperature sensors..."