[Logcheck-commits] CVS logcheck/src

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Fri, 04 Jun 2004 10:02:19 -0600


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv4295/src

Modified Files:
	logcheck 
Log Message:

/me doing nitpicking, whitespace cleanup.. 


--- /cvsroot/logcheck/logcheck/src/logcheck	2004/06/04 15:53:24	1.50
+++ /cvsroot/logcheck/logcheck/src/logcheck	2004/06/04 16:02:18	1.51
@@ -22,7 +22,7 @@
 # along with Logcheck; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $Id: logcheck,v 1.50 2004/06/04 15:53:24 maks-guest Exp $
+# $Id: logcheck,v 1.51 2004/06/04 16:02:18 maks-guest Exp $
 
 
 # Set the umask
@@ -176,8 +176,9 @@
 	    if [ -f ${dir}/${rulefile} ]; then
 		debug "cleanrules: ${dir}/${rulefile}"
 		# pipe to cat on greps to get usable exit status
-		egrep --text -v '^\s*$|^#' $dir/$rulefile |cat>> $cleaned/$rulefile \
-		    || error "Could not append to $cleaned/$rulefile.  Disk Full?"
+		egrep --text -v '^\s*$|^#' $dir/$rulefile | cat \
+		    >> $cleaned/$rulefile \
+		    || error "Couldn't append to $cleaned/$rulefile. Disk Full?"
 	    fi
 	done
     elif [ -f $dir ]; then
@@ -195,7 +196,7 @@
 	if [ $SYSLOGSUMMARY -eq 1 ] && [ -x $SYSLOG_SUMMARY ]; then
 	    debug "report: running syslog-summary - $*"
 	    $SYSLOG_SUMMARY $TMPDIR/checked | \
-		egrep -v "^Summarizing "|cat >> $TMPDIR/report \
+		egrep -v "^Summarizing "| cat >> $TMPDIR/report \
 		    || error "Could not append to report.  Disk Full?"
 	else
 	    if [ $SYSLOGSUMMARY -eq 1 ] && [ ! -x $SYSLOG_SUMMARY ]; then
@@ -336,7 +337,7 @@
 
     if [ -f $clean ]; then 
 	debug "cleanchecked - file: $clean"
-        egrep --text -v -f $clean $TMPDIR/checked |cat >> $TMPDIR/checked.1  \
+        egrep --text -v -f $clean $TMPDIR/checked | cat >> $TMPDIR/checked.1  \
 	    || error "Could not output to $TMPDIR/checked.1 Disk full?"
 	mv $TMPDIR/checked.1 $TMPDIR/checked \
 	    || error "Could not move $TMPDIR/checked.1 to $TMPDIR/checked"
@@ -344,7 +345,7 @@
 	debug "cleanchecked - dir - $clean"
 	for file in $(ls -1 $clean/); do
 	debug "cleanchecked - dir - $clean/$file"
-	    egrep --text -v -f $clean/$file $TMPDIR/checked |cat \
+	    egrep --text -v -f $clean/$file $TMPDIR/checked | cat \
 		>> $TMPDIR/checked.1 \
 		    || error "Could not output to TMPDIR/checked.1 Disk Full?"
 	    mv $TMPDIR/checked.1 $TMPDIR/checked \

[30 lines skipped]