From b73ca2d95341dd6e1330020fed6fe25cea2e86c1 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 10 Mar 2017 09:07:54 +0100 Subject: reproducible debian: maintenance: fix syntax error 'local: can only be used in a function' Signed-off-by: Mattia Rizzolo Signed-off-by: Holger Levsen --- bin/reproducible_maintenance.sh | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3-70-g09d2