diff options
author | rincewind <rincewind@vulgrim.de> | 2021-04-23 16:07:37 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-21 10:19:32 +0100 |
commit | 763b7ab0c491cdc47442010374454532bfbe41dc (patch) | |
tree | 2a3c46133b07903bf37531a4eb14299d922ae434 /plugins-scripts/check_sensors.sh | |
parent | 78801192cf55ed01f284c93caa3eb0ba6842827c (diff) | |
download | monitoring-plugins-763b7ab0c491cdc47442010374454532bfbe41dc.tar.gz |
check_sensors.sh: Make shellcheck happier
Diffstat (limited to 'plugins-scripts/check_sensors.sh')
-rwxr-xr-x | plugins-scripts/check_sensors.sh | 2 |
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 | |||
46 | if test ${status} -eq 127; then | 46 | if test ${status} -eq 127; then |
47 | text="SENSORS UNKNOWN - command not found (did you install lmsensors?)" | 47 | text="SENSORS UNKNOWN - command not found (did you install lmsensors?)" |
48 | exit=$STATE_UNKNOWN | 48 | exit=$STATE_UNKNOWN |
49 | elif test ${status} -ne 0; then | 49 | elif test "${status}" -ne 0; then |
50 | text="WARNING - sensors returned state $status" | 50 | text="WARNING - sensors returned state $status" |
51 | exit=$STATE_WARNING | 51 | exit=$STATE_WARNING |
52 | elif echo "${sensordata}" | egrep ALARM > /dev/null; then | 52 | elif echo "${sensordata}" | egrep ALARM > /dev/null; then |