diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-24 02:19:22 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-24 02:19:22 +0000 |
commit | 38ffa48b64165325a2eb4a625cbb05e1dfb0d348 (patch) | |
tree | ef0d2a2ebd3415ffbdced7dc9d89873fafd22940 /tools/sfsnapshot | |
parent | 56a314b28370a6939c0dfbd7e31a30cd8af6fdff (diff) | |
download | monitoring-plugins-38ffa48b64165325a2eb4a625cbb05e1dfb0d348.tar.gz |
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
Diffstat (limited to 'tools/sfsnapshot')
-rwxr-xr-x | tools/sfsnapshot | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/sfsnapshot b/tools/sfsnapshot index 7b44adcc..8e82f298 100755 --- a/tools/sfsnapshot +++ b/tools/sfsnapshot | |||
@@ -81,3 +81,8 @@ EOF | |||
81 | 81 | ||
82 | rm -f $files | 82 | rm -f $files |
83 | 83 | ||
84 | # Work out success or failure | ||
85 | expected=$(($# + 1)) | ||
86 | set -- $files | ||
87 | [[ $# -ne $expected ]] && die "Expected $expected, got $#" | ||
88 | exit 0 | ||