1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-12-26 02:53:51 +01:00

Minor compatability fix for non-bash shells

This commit is contained in:
ash 2017-02-09 16:10:41 +00:00
parent 24518a74e7
commit e7290f2a89

View File

@ -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