X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.weekly;fp=cron.weekly;h=18d4162b6cb56de09899d916aaad474b64edfd6e;hb=f550bf0819c51be54fc97366c3d44756ba831f94;hp=a86caac260e8847de421ef1ada1e8bb5d8d95957;hpb=cd4e8043f530e38f975d877438bdd2707477487e;p=dak.git diff --git a/cron.weekly b/cron.weekly index a86caac2..18d4162b 100755 --- a/cron.weekly +++ b/cron.weekly @@ -1,6 +1,6 @@ #!/bin/sh # -# Run once a week via cron, out of troup's crontab. +# Run once a week via cron, out of katie's crontab. set -e export SCRIPTVARS=/org/ftp.debian.org/katie/vars @@ -8,14 +8,10 @@ export SCRIPTVARS=/org/ftp.debian.org/katie/vars ################################################################################ -# Clean out incoming - -shania - # Purge empty directories -if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then - find $ftpdir/pool/ -type d -empty | xargs rmdir; +if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then + find $ftpdir/pool/ -type d -empty | xargs rmdir; fi # Clean up apt-ftparchive's databases