fs.conf: bzip2.test
authorTomas Zeman <tzeman@volny.cz>
Wed, 27 Oct 2010 10:38:01 +0200
changeset 7 0cd47f29bdfb
parent 6 283c9818387c
child 8 5470a29d74a7
fs.conf: bzip2.test
conf/fs.conf
--- a/conf/fs.conf	Sat Jul 24 16:03:30 2010 +0200
+++ b/conf/fs.conf	Wed Oct 27 10:38:01 2010 +0200
@@ -6,3 +6,6 @@
 # Returns count of files in directory $1
 UserParameter=dir.files[*],ls $1|wc -l
 
+# Returns 0 if bzip2 test of file $1 passed.
+# Note: can't use just return code ($?) as bzip2 is too forgiving to corrupt archives.
+UserParameter=bzip2.test[*],bzip2 -q -t $1 2>&1|wc -l