From ada0109d158c6f657137e7e6e8403ff32b23abd4 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 22 Jul 2009 21:54:39 -0700 Subject: ftpdir-cleanup: Minimize output Clean up some output so when we do nothing, we get no output This is preferred as the mailer will simply not send a mail in this case. Signed-off-by: Aaron Griffin --- misc-scripts/ftpdir-cleanup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'misc-scripts/ftpdir-cleanup') diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index fc99c46..22d227a 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -109,14 +109,13 @@ for arch in ${ARCHES[@]}; do fi done - echo "Scan complete for $reponame ($arch) at ${ftppath}" - #Make sure we've done *something* before outputting anything if [ -z "$DELETEFILES$DELETESYMLINKS$MISSINGFILES$EXTRAFILES" ]; then - echo "(nothing to do for $arch)" continue fi + echo "Scan complete for $reponame ($arch) at ${ftppath}" + if [ -n "$DELETEFILES" ]; then echo " The following files are out of date" echo " They will be moved to '$dest'" @@ -171,7 +170,6 @@ done ARCHINDEPFILES="" if [ -d "$ftppath_base/any" ]; then - echo "Checking arch-independent files..." cd "$ftppath_base/any" for pkg in *$PKGEXT; do [ -f "$pkg" ] || continue # in case we get a file named "*.pkg.tar.gz" -- cgit v1.2.3-24-g4f1b