Skip to content

Commit

Permalink
Try switching to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Nov 13, 2024
1 parent a5d5255 commit 1da5da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/install-cp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ CP_RELEASE=y
if [[ "$CP_VERSION" == latest ]]; then
# Find the version number of the latest release
download \
https://www.classicpress.net/wp-json/cp/v1/latest \
https://api.github.com/repos/ClassicPress/ClassicPress-release/releases/latest \
"$TMPDIR/cp-latest.json"
CP_VERSION=$(grep -o '"version":"[^"]*' $TMPDIR/cp-latest.json | sed 's/"version":"//')
CP_VERSION=$(grep -o '"tag_name":"[^"]*' $TMPDIR/cp-latest.json | sed 's/"version":"//')

if [ -z "$CP_VERSION" ]; then
echo "ClassicPress version not detected correctly!"
Expand Down

0 comments on commit 1da5da7

Please sign in to comment.