[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible debian: maintenance: fix syntax error 'local: can only be used in a function'

Holger Levsen holger at layer-acht.org
Fri Mar 10 09:34:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit b73ca2d95341dd6e1330020fed6fe25cea2e86c1
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Fri Mar 10 09:07:54 2017 +0100

    reproducible debian: maintenance: fix syntax error 'local: can only be used in a function'
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 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 71a2da7..a897375 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 at debian.org"
 				fi
-				cat $TMPFILE | mail -s "$(basename $PROBLEM) found" $CC qa-jenkins-scm at lists.alioth.debian.org
+				cat $TMPFILE | mail -s "$(basename $PROBLEM) found" ${CC:-} qa-jenkins-scm at lists.alioth.debian.org
 			fi
 			rm -f $TMPFILE
 		fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list