[Qa-jenkins-scm] [jenkins.debian.net] 05/05: fix UP2DATE logic
Holger Levsen
holger at layer-acht.org
Thu Jul 14 13:04:33 UTC 2016
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 b86e4738a0963bc625c70be10867d157db45d654
Author: Philip Hands <phil at hands.com>
Date: Thu Jul 14 11:59:04 2016 +0200
fix UP2DATE logic
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update_jdn.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index a5d3fcc..957a39c 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -15,10 +15,10 @@ TMPFILE=$(mktemp)
JJB="jenkins-job-builder $@"
# so we can later run some commands only if $0 has been updated…
-if [ ! -f $STAMP ] && [ $BASEDIR/$0 -nt $STAMP ] ; then
- UP2DATE=false
-else
+if [ -f $STAMP ] && [ $STAMP -nt $BASEDIR/$0 ] ; then
UP2DATE=true
+else
+ UP2DATE=false
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