diff options
-rw-r--r-- | util/cleandir.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/cleandir.pl b/util/cleandir.pl index 0e1d5b3a..606e3b4b 100644 --- a/util/cleandir.pl +++ b/util/cleandir.pl @@ -4,12 +4,13 @@ use strict; use lib '/home/bbs/bin/'; use BBSFileHeader; -my($nDels, $prefix) = (); -$nDels = 0; +my($nDels, $old, $prefix) = (); +$old = $nDels = 0; foreach( @ARGV ){ print "cleaning: $_\n"; cleandir($_); - print "\n"; + print ("\t".($nDels - $old). " files deleted\n"); + $old = $nDels; } print "$nDels files deleted\n"; |