]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian-security/cron.unchecked
cleanup ssh config, remove unused keys
[dak.git] / config / debian-security / cron.unchecked
index eea530b445cb1c36342927bd91bf512eb5c5ff5f..7baf55ac10cd8b6f45b2afa38de905f52c1b881d 100755 (executable)
@@ -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