From: James Troup Date: Sun, 11 Jun 2006 05:28:16 +0000 (+0100) Subject: Use set -u in cron scripts. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1d8f8262d7d8033f333fedb43ba0540efea066a9;p=dak.git Use set -u in cron scripts. --- diff --git a/ChangeLog b/ChangeLog index 7dd06e2b..3d7e0106 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2006-06-11 James Troup + * config/debian/cron.unchecked: set -u to error out on undefined + variables. Preset LOCKDAILY to "" accordingly. + * config/debian/cron.hourly: likewise. + * config/debian/cron.monthly: likewise. + * config/debian/cron.weekly: likewise. + * config/debian/vars (configdir): add new variable pointing to this directory. diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index 8efa0e09..59104c3a 100644 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -3,6 +3,7 @@ # Executed hourly via cron, out of troup's crontab. set -e +set -u export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars . $SCRIPTVARS diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly index ac4bf7dd..9d7a68ba 100755 --- a/config/debian/cron.monthly +++ b/config/debian/cron.monthly @@ -3,6 +3,7 @@ # Run at the beginning of the month via cron, out of dak's crontab. set -e +set -u export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars . $SCRIPTVARS diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked index c018d51f..1282b60e 100644 --- a/config/debian/cron.unchecked +++ b/config/debian/cron.unchecked @@ -1,9 +1,11 @@ #! /bin/sh set -e +set -u export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars . $SCRIPTVARS +LOCKDAILY="" LOCKFILE="$lockdir/unchecked.lock" NOTICE="$lockdir/daily.lock" diff --git a/config/debian/cron.weekly b/config/debian/cron.weekly index 3624336c..2c159380 100755 --- a/config/debian/cron.weekly +++ b/config/debian/cron.weekly @@ -3,6 +3,7 @@ # Run once a week via cron, out of dak's crontab. set -e +set -u export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars . $SCRIPTVARS