summaryrefslogtreecommitdiff
path: root/misc-scripts/ftpdir-cleanup
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-06-19 18:08:21 -0400
committerAaron Griffin <aaronmgriffin@gmail.com>2008-06-19 18:08:21 -0400
commitdf172d0deeb21640bd6d557fbd4eff9d99f97a99 (patch)
tree92630be8af4bda1c4f89801436944158990cf9ed /misc-scripts/ftpdir-cleanup
parente2c449a7fba574440cc8e41f2402982c36ef0d28 (diff)
Make sure ftpdir-cleanup actually does work before outputting
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts/ftpdir-cleanup')
-rwxr-xr-xmisc-scripts/ftpdir-cleanup6
1 files changed, 6 insertions, 0 deletions
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"