From: James Troup Date: Tue, 15 Apr 2003 16:01:42 +0000 (+0000) Subject: only run kelly if there are some accepted packages X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=866002bf961d28adf175afcd8b438541efe6b371;p=dak.git only run kelly if there are some accepted packages --- diff --git a/cron.daily-non-US b/cron.daily-non-US index a8c294b3..f2b4306f 100755 --- a/cron.daily-non-US +++ b/cron.daily-non-US @@ -37,12 +37,14 @@ 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 +fi cd $masterdir symlinks -d -r $ftpdir