Fix typo: If lm-sensors is not installed, it would exit with OK instead of UNKNOWN.
This commit is contained in:
parent
664cac6965
commit
6b1c3b0d95
@ -94,7 +94,7 @@ sensor=CPU
|
|||||||
# See if we have sensors program installed and can execute it
|
# See if we have sensors program installed and can execute it
|
||||||
if [[ ! -x "$SENSORPROG" ]]; then
|
if [[ ! -x "$SENSORPROG" ]]; then
|
||||||
printf "\nIt appears you don't have lm-sensors installed in $SENSORPROG\n"
|
printf "\nIt appears you don't have lm-sensors installed in $SENSORPROG\n"
|
||||||
exit $STATE_UNKOWN
|
exit $STATE_UNKNOWN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user