From df172d0deeb21640bd6d557fbd4eff9d99f97a99 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 19 Jun 2008 18:08:21 -0400 Subject: Make sure ftpdir-cleanup actually does work before outputting Signed-off-by: Aaron Griffin --- misc-scripts/ftpdir-cleanup | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'misc-scripts/ftpdir-cleanup') diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index f8c1a8e..6cbb893 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -81,7 +81,13 @@ done cd "$ftppath" rm -rf ${TMPDIR} +#Make sure we've done *something* before outputting anything +if [ -z "$DELETEFILES$MISSINGFILES$EXTRAFILES" ]; then + exit 0 +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 /home/package-cleanup" -- cgit v1.2.3-24-g4f1b