We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9dfce1 commit 163f643Copy full SHA for 163f643
update.sh
@@ -1,9 +1,9 @@
1
#!/bin/bash
2
-set -eo pipefail
+set -euo pipefail
3
4
-current="$(curl -sSL 'http://api.wordpress.org/core/version-check/1.7/' | sed -r 's/^.*"current":"([^"]+)".*$/\1/')"
+current="$(curl -fsSL 'http://api.wordpress.org/core/version-check/1.7/' | jq -r '.offers[0].current')"
5
6
-sha1="$(curl -sSL "https://wordpress.org/wordpress-$current.tar.gz.sha1")"
+sha1="$(curl -fsSL "https://wordpress.org/wordpress-$current.tar.gz.sha1")"
7
8
travisEnv=
9
for variant in apache fpm; do
0 commit comments