From 38ffa48b64165325a2eb4a625cbb05e1dfb0d348 Mon Sep 17 00:00:00 2001
From: Ton Voon <tonvoon@users.sourceforge.net>
Date: Mon, 24 Mar 2003 02:19:22 +0000
Subject: 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

diff --git a/tools/sfsnapshot b/tools/sfsnapshot
index 7b44adc..8e82f29 100755
--- a/tools/sfsnapshot
+++ b/tools/sfsnapshot
@@ -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
-- 
cgit v0.10-9-g596f

