From 866002bf961d28adf175afcd8b438541efe6b371 Mon Sep 17 00:00:00 2001 From: James Troup Date: Tue, 15 Apr 2003 16:01:42 +0000 Subject: [PATCH] only run kelly if there are some accepted packages --- cron.daily-non-US | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 -- 2.39.5