check_sensors.sh: Make shellcheck happier

This commit is contained in:
rincewind 2021-04-23 16:07:37 +02:00 committed by RincewindsHat
parent 78801192cf
commit 763b7ab0c4

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