From 829e8b2a6a1218f8c7049e0a5530b166e95bb3cc Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Thu, 7 Jan 2016 15:03:28 -0500 Subject: [PATCH] Use SSL connection when pulling version JSON --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index bb27843..2ae02a8 100755 --- a/update.sh +++ b/update.sh @@ -2,7 +2,7 @@ set -e # TODO - We (Joomla) need to expose an alternate API to checking the latest version other than our XML files -current="$(curl -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36' -sSL 'http://developer.joomla.org/latest_version.json' | sed -r 's/^.*"current":"([^"]+)".*$/\1/')" +current="$(curl -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36' -sSL 'https://developer.joomla.org/latest_version.json' | sed -r 's/^.*"current":"([^"]+)".*$/\1/')" # We're putting a lot of trust in this process, once Joomla has an exposed API to query the SHA1 use that instead wget -O joomla.zip https://github.com/joomla/joomla-cms/releases/download/$current/Joomla_$current-Stable-Full_Package.zip