diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-06-19 18:08:21 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-06-19 18:08:21 -0400 |
commit | df172d0deeb21640bd6d557fbd4eff9d99f97a99 (patch) | |
tree | 92630be8af4bda1c4f89801436944158990cf9ed | |
parent | e2c449a7fba574440cc8e41f2402982c36ef0d28 (diff) |
Make sure ftpdir-cleanup actually does work before outputting
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | misc-scripts/ftpdir-cleanup | 6 |
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" |