summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-03 23:52:30 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-03 23:53:36 +0200
commit2192cc4ed8a187f46093e1907d394fe6da93433d (patch)
tree5fb4dbcd1b680fe51824e030373f19b27664faf8
parentb29f2e8ea946537214cbd5633f9a600bffa65ddd (diff)
downloadjenkins.debian.net-2192cc4ed8a187f46093e1907d394fe6da93433d.tar.xz
update_jdn: execute the python scripts without calling directly the interpreter. allow both py2 and py3 scripts
-rwxr-xr-xupdate_jdn.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index ddee8478..e494b3cf 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -266,7 +266,8 @@ explain "Updated user content for Jenkins."
#
cd /srv/jenkins/job-cfg
for metaconfig in *.yaml.py ; do
- python $metaconfig > $TMPFILE
+# there are both python2 and python3 scripts here
+ ./$metaconfig > $TMPFILE
if ! $(diff ${metaconfig%.py} $TMPFILE > /dev/null) ; then
cp $TMPFILE ${metaconfig%.py}
fi