]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/cron.unchecked
use "set -o pipefail" for shell scripts
[dak.git] / config / debian / cron.unchecked
index d3e07e158a7b3453a14874d0266200d77190aed0..8dc3b1f037a10766ccf2ce97a1d3e059c7a1a1ea 100755 (executable)
@@ -18,6 +18,7 @@
 
 # exit on errors
 set -e
+set -o pipefail
 # make sure to only use defined variables
 set -u
 # ERR traps should be inherited from functions too. (And command
@@ -97,7 +98,15 @@ trap cleanup 0
 
 
 pg_timestamp preunchecked >/dev/null
+
+# Process policy queues
+punew proposedupdates
+opunew oldproposedupdates
+
+# Now process the NEW staging area
 do_newstage
+
+# Finally deal with unchecked
 do_unchecked
 
 if [ ! -z "$changes" ]; then