X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.unchecked;h=7baf55ac10cd8b6f45b2afa38de905f52c1b881d;hb=50349d329a1a6453b7fbe158bcb22a2f71f60b98;hp=eea530b445cb1c36342927bd91bf512eb5c5ff5f;hpb=ebec9bc1c451491b8558e6012680e7d37c0bc595;p=dak.git diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked index eea530b4..7baf55ac 100755 --- a/config/debian-security/cron.unchecked +++ b/config/debian-security/cron.unchecked @@ -1,6 +1,7 @@ #! /bin/bash set -e +set -o pipefail set -u export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars @@ -61,9 +62,9 @@ if [ -n "$changes" ]; then dak process-upload -a -d "$disembargo" >> $reportdis fi -if ! $doanything; then - echo "$timestamp": Nothing to do >> $report - exit 0 +if [ "${doanything}" = "false" ] && [ "${dopolicy}" = "false" ]; then + echo "$timestamp": Nothing to do >> $report + exit 0 fi dak manage-build-queues -a