summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintenance.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-03-10 09:07:54 +0100
committerHolger Levsen <holger@layer-acht.org>2017-03-10 10:33:53 +0100
commitb73ca2d95341dd6e1330020fed6fe25cea2e86c1 (patch)
tree818e0258143ce2068ec08ed2b674cf56c49ee10a /bin/reproducible_maintenance.sh
parentd518fb6aa79613c67ad8d520e5c79e52ba8c4580 (diff)
downloadjenkins.debian.net-b73ca2d95341dd6e1330020fed6fe25cea2e86c1.tar.xz
reproducible debian: maintenance: fix syntax error 'local: can only be used in a function'
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-xbin/reproducible_maintenance.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 71a2da79..a8973757 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -493,11 +493,10 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ] ; then
fi
# send mail if we found issues
if [ -s $TMPFILE ] && ! grep -q "no problems yesterday…" $TMPFILE ; then
- local CC=""
if [ "$(basename $PROBLEM)" = "reproducible-submit2buildinfo.debian.net.log" ]; then
CC="-c lamby@debian.org"
fi
- cat $TMPFILE | mail -s "$(basename $PROBLEM) found" $CC qa-jenkins-scm@lists.alioth.debian.org
+ cat $TMPFILE | mail -s "$(basename $PROBLEM) found" ${CC:-} qa-jenkins-scm@lists.alioth.debian.org
fi
rm -f $TMPFILE
fi