X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=cron.daily-non-US;h=a901f6b80fe560c18e53c4bcc812a87f1aa78a35;hb=d18cb779351f1803efc61e27f248b6f33d95756e;hp=a8c294b30a370d66434096a06a60a8eebce3fa65;hpb=8ae39dfa247176a7fc3650c562c7f794334d6493;p=dak.git diff --git a/cron.daily-non-US b/cron.daily-non-US index a8c294b3..a901f6b8 100755 --- a/cron.daily-non-US +++ b/cron.daily-non-US @@ -37,12 +37,16 @@ update-readmenonus ################################################################################ -cd $accepted -rm -f REPORT -kelly -pa *.changes | tee REPORT | \ +if [ ! -z "$(find "$accepted" -name \*.changes -maxdepth 1 -mindepth 1)" ]; then + cd $accepted + rm -f REPORT + kelly -pa *.changes | tee REPORT | \ mail -s "Non-US Install for $(date +%D)" ftpmaster@ftp-master.debian.org -chgrp debadmin REPORT -chmod 664 REPORT + chgrp debadmin REPORT + chmod 664 REPORT +else + echo "kelly: Nothing to install." +fi cd $masterdir symlinks -d -r $ftpdir