1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 10:23:46 +01:00

fixed missing tempfile cleanup

This commit is contained in:
root 2012-03-04 16:22:37 +00:00
parent 0143aa55fe
commit 15b9e64a88

View File

@ -6,6 +6,7 @@ MESSAGE="Nagios configuration is valid"
EXIT_CODE=3 EXIT_CODE=3
TMPFILE=`mktemp` TMPFILE=`mktemp`
trap "rm -f $TMPFILE" EXIT
nagios -v /etc/nagios/nagios.cfg > $TMPFILE nagios -v /etc/nagios/nagios.cfg > $TMPFILE
RESULT=$? RESULT=$?