Fix #293 Use version sort so 2.10 gets built
diff --git a/weekly.sh b/weekly.sh
index d70452d..155a7d5 100755
--- a/weekly.sh
+++ b/weekly.sh
@@ -3,7 +3,7 @@
set -e
set -x
-JENKINS_VERSION=`curl -q https://api.github.com/repos/jenkinsci/jenkins/tags | grep '"name":' | grep -o '[0-9]\.[0-9]*' | uniq | sort | tail -1`
+JENKINS_VERSION=`curl -sq https://api.github.com/repos/jenkinsci/jenkins/tags | grep '"name":' | grep -o '[0-9]\.[0-9]*' | uniq | sort --version-sort | tail -1`
echo $JENKINS_VERSION
JENKINS_SHA=`curl http://repo.jenkins-ci.org/simple/releases/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war.sha1`