[Nagiosplug-checkins] CVS: nagiosplug/tools sfsnapshot,1.6,1.7

Ton Voon tonvoon at users.sourceforge.net
Sun Mar 23 18:20:20 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv11208

Modified Files:
	sfsnapshot 
Log Message:
Error code depending on number of files generated


Index: sfsnapshot
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/tools/sfsnapshot,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** sfsnapshot	8 Mar 2003 02:02:43 -0000	1.6
--- sfsnapshot	24 Mar 2003 02:19:22 -0000	1.7
***************
*** 82,83 ****
--- 82,88 ----
  rm -f $files
  
+ # Work out success or failure
+ expected=$(($# + 1))
+ set -- $files
+ [[ $# -ne $expected ]] && die "Expected $expected, got $#"
+ exit 0





More information about the Commits mailing list