From 2706662221524b890532bd7c8eeadac67f72faa8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 21 Nov 2016 14:53:13 +0100 Subject: only notify irc of updates if an update really happened Signed-off-by: Holger Levsen --- update_jdn.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'update_jdn.sh') diff --git a/update_jdn.sh b/update_jdn.sh index 6b2ca26f..a2e1e80e 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -739,9 +739,11 @@ case $HOSTNAME in sudo date --set="+398 days +6 hours + 23 minutes" ;; jenkins) - # notify irc - MESSAGE="jenkins.d.n updated to $(cd $BASEDIR ; git describe --always)." - kgb-client --conf /srv/jenkins/kgb/debian-qa.conf --relay-msg "$MESSAGE" + # notify irc on updates of jenkins.d.n + if ! $UP2DATE ; then + MESSAGE="jenkins.d.n updated to $(cd $BASEDIR ; git describe --always)." + kgb-client --conf /srv/jenkins/kgb/debian-qa.conf --relay-msg "$MESSAGE" + fi ;; *) ;; esac -- cgit v1.2.3-54-g00ecf