Update weekly.sh
diff --git a/weekly.sh b/weekly.sh
index 2533777..5148ebf 100755
--- a/weekly.sh
+++ b/weekly.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-JENKINS_VERSION=`curl -q https://api.github.com/repos/jenkinsci/jenkins/tags | grep '"name":' | grep -o '1\.[0-9][0-9][0-9]' | uniq | sort | tail -1`
+JENKINS_VERSION=`curl -q https://api.github.com/repos/jenkinsci/jenkins/tags | grep '"name":' | grep -o '[0-9]\.[0-9]+' | uniq | 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`