aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lorenz <12514511+RincewindsHat@users.noreply.github.com> 2021-12-21 10:57:53 +0100
committerGravatar GitHub <noreply@github.com> 2021-12-21 10:57:53 +0100
commit78a999edd4dd3305ef8fa3e06c43f6a893fb6fea (patch)
treeb29aa6e0f4298780923bd6c689d5b93d9b54b724
parentebf5cd2afef33aa4e6b680a88deb804d104c68f5 (diff)
parent763b7ab0c491cdc47442010374454532bfbe41dc (diff)
downloadmonitoring-plugins-78a999edd4dd3305ef8fa3e06c43f6a893fb6fea.tar.gz
Merge pull request #1679 from RincewindsHat/shell_check_check_sensors.sh
check_sensors.sh: Make shellcheck happier
-rwxr-xr-xplugins-scripts/check_sensors.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh
index 9a6cf5de..ab4e726e 100755
--- a/plugins-scripts/check_sensors.sh
+++ b/plugins-scripts/check_sensors.sh
@@ -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