From b86e4738a0963bc625c70be10867d157db45d654 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Thu, 14 Jul 2016 11:59:04 +0200 Subject: fix UP2DATE logic Signed-off-by: Holger Levsen --- update_jdn.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_jdn.sh b/update_jdn.sh index a5d3fccd..957a39cb 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 -- cgit v1.2.3-70-g09d2