Fix typo: If lm-sensors is not installed, it would exit with OK instead of UNKNOWN.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user