Signed-off-by: Robin H. Johnson <rjohnson@sitka.bclibraries.ca>
pbzip2 -9nvk -p4 *{marc,log}
pbzip2 -9nv -p4 split/*{marc,log}
$DIR/stats.sh
-egrep -sq '^([[:space:]]*0){2}' *stats
+# Look for zeros in the output marc
+egrep -vsq '^([[:space:]]*0){2}.*marc$' *stats
grep_result=$?
+# halt if found
if [ $rc -ne 0 -o $grep_result -ne 0 ]; then
- echo "Failed to run export! Human needed! export=$rc grep=$rc" 1>&2
+ echo "Failed to run export! Human needed! export=$rc grep_sanity=$grep_result" 1>&2
cat *stats 1>&2
exit 1
fi