summaryrefslogtreecommitdiffstats
path: root/misc-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'misc-scripts')
-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"