mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-08 16:26:23 -04:00
Error code depending on number of files generated
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@454 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
56a314b283
commit
38ffa48b64
1 changed files with 5 additions and 0 deletions
|
|
@ -81,3 +81,8 @@ EOF
|
|||
|
||||
rm -f $files
|
||||
|
||||
# Work out success or failure
|
||||
expected=$(($# + 1))
|
||||
set -- $files
|
||||
[[ $# -ne $expected ]] && die "Expected $expected, got $#"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue