Merge pull request #1679 from RincewindsHat/shell_check_check_sensors.sh

check_sensors.sh: Make shellcheck happier
This commit is contained in:
Lorenz 2021-12-21 10:57:53 +01:00 committed by GitHub
commit 78a999edd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ case "$1" in
if test ${status} -eq 127; then
text="SENSORS UNKNOWN - command not found (did you install lmsensors?)"
exit=$STATE_UNKNOWN
elif test ${status} -ne 0; then
elif test "${status}" -ne 0; then
text="WARNING - sensors returned state $status"
exit=$STATE_WARNING
elif echo "${sensordata}" | egrep ALARM > /dev/null; then