wordpress/version
2022-12-18 00:26:19 +01:00

9 lines
293 B
Bash
Executable File

#!/bin/sh
# https://codex.wordpress.org/WordPress.org_API
WP=`curl -s https://api.wordpress.org/core/version-check/1.7/ |jq -r '.offers[0].version'`
WP_CLI=`curl -s https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar |sha256sum |awk '{ print $1 }'`
echo "$WP:$WP_CLI"