From 6b1c3b0d95ec28f0bf3afb0a6d6915b14048484a Mon Sep 17 00:00:00 2001 From: Elyrith Date: Sat, 5 Oct 2013 23:39:34 -0400 Subject: [PATCH] Fix typo: If lm-sensors is not installed, it would exit with OK instead of UNKNOWN. --- check_temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_temp.sh b/check_temp.sh index 40480d5..5f779a1 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -94,7 +94,7 @@ sensor=CPU # See if we have sensors program installed and can execute it if [[ ! -x "$SENSORPROG" ]]; then printf "\nIt appears you don't have lm-sensors installed in $SENSORPROG\n" - exit $STATE_UNKOWN + exit $STATE_UNKNOWN fi # Parse command line options