summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-14 14:46:53 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-14 14:46:58 +0200
commit19c8bc3bf374d52427c66fd8bc4db5b2909b3da0 (patch)
tree6b416a9c552decf8df2399586c5840f6fddbcaa1 /update_jdn.sh
parenta88b0f52a696e183e760f7d77e1548b4b07cb2da (diff)
downloadjenkins.debian.net-19c8bc3bf374d52427c66fd8bc4db5b2909b3da0.tar.xz
fixup: only update job when there have been changes
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 5130b4bb..28fb2ef1 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -260,7 +260,7 @@ STAMP=/var/log/jenkins/jobs-updated.stamp
cd /srv/jenkins/job-cfg
for metaconfig in *.yaml.py ; do
python $metaconfig > $TMPFILE
- if ! $(diff $metaconfig $TMPFILE > /dev/null) ; then
+ if ! $(diff ${metaconfig%.py} $TMPFILE > /dev/null) ; then
cp $TMPFILE ${metaconfig%.py}
fi
done