summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-07-23 06:54:39 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-23 06:54:39 +0200
commitada0109d158c6f657137e7e6e8403ff32b23abd4 (patch)
tree00780fe1e5b1325f52753900bd6bf3aab5c1bac4
parent6ed6f4e6a482e913b01f5dc6d0b52575614742a7 (diff)
downloaddbscripts-ada0109d158c6f657137e7e6e8403ff32b23abd4.tar.gz
dbscripts-ada0109d158c6f657137e7e6e8403ff32b23abd4.tar.xz
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 <aaronmgriffin@gmail.com>
-rwxr-xr-xmisc-scripts/ftpdir-cleanup6
1 files changed, 2 insertions, 4 deletions
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"