[monitoring-plugins] check_sensors.sh: Make shellcheck happier

RincewindsHat git at monitoring-plugins.org
Tue Dec 21 11:00:12 CET 2021


    Module: monitoring-plugins
    Branch: master
    Commit: 763b7ab0c491cdc47442010374454532bfbe41dc
    Author: rincewind <rincewind at vulgrim.de>
 Committer: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
      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



More information about the Commits mailing list