Module: monitoring-plugins
    Branch: master
    Commit: 763b7ab0c491cdc47442010374454532bfbe41dc
    Author: rincewind <[email protected]>
 Committer: RincewindsHat <[email protected]>
      Date: Fri Apr 23 16:07:37 2021 +0200
       URL: 
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=763b7ab

check_sensors.sh: Make shellcheck happier

---

 plugins-scripts/check_sensors.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh
index 9a6cf5d..ab4e726 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

Reply via email to