mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-24 03:13:47 +01:00
Minor compatability fix for non-bash shells
This commit is contained in:
parent
24518a74e7
commit
e7290f2a89
@ -30,8 +30,8 @@ for i in $CLASSES ; do
|
||||
done
|
||||
|
||||
|
||||
test $EXIT_CODE == 0 && SUMMARY="OK - $SUMMARY"
|
||||
test $EXIT_CODE == 1 && SUMMARY="WARNING - $SUMMARY"
|
||||
test $EXIT_CODE == 2 && SUMMARY="CRITICAL - $SUMMARY"
|
||||
test $EXIT_CODE = 0 && SUMMARY="OK - $SUMMARY"
|
||||
test $EXIT_CODE = 1 && SUMMARY="WARNING - $SUMMARY"
|
||||
test $EXIT_CODE = 2 && SUMMARY="CRITICAL - $SUMMARY"
|
||||
echo "$SUMMARY | $PERFDATA"
|
||||
exit $EXIT_CODE
|
||||
|
Loading…
Reference in New Issue
Block a user