diff options
author | Philip Hands <phil@hands.com> | 2016-07-14 11:59:04 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-07-14 15:04:19 +0200 |
commit | b86e4738a0963bc625c70be10867d157db45d654 (patch) | |
tree | 509d06774ca3d78d2bdf9f978ee57075516ffda3 | |
parent | 80d5f1439020bfc1f644262520525ef9996dd44c (diff) | |
download | jenkins.debian.net-b86e4738a0963bc625c70be10867d157db45d654.tar.xz |
fix UP2DATE logic
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | update_jdn.sh | 6 |
1 files 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 |