]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/cron.unchecked
cron.unchecked: don't try doing anything if the daily lock is held
[dak.git] / config / debian / cron.unchecked
index a98ff0869604cd84349a1b967bca2de45e865c90..0e595736659968d462a9ab1f7686a90cf3c58616 100644 (file)
@@ -9,6 +9,8 @@ LOCKDAILY=""
 LOCKFILE="$lockdir/unchecked.lock"
 NOTICE="$lockdir/daily.lock"
 
+if [ -e $NOTICE ]; then exit 0; fi
+
 cleanup() {
   rm -f "$LOCKFILE"
   if [ ! -z "$LOCKDAILY" ]; then