Skip to content

Commit

Permalink
Missing something
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Nov 13, 2024
1 parent 9ac42bc commit 32bf896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/install-cp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ if [[ "$CP_VERSION" == latest ]]; then
download \
https://www.classicpress.net/latest.json \
"$TMPDIR/cp-latest.json"
CP_VERSION="$(grep -Po '"version":\s*"[^"]+"' "$TMPDIR/cp-latest.json" | cut -d'"' -f4)"
CP_VERSION=$(grep -o '"version":"[^"]*' /tmp/cp-latest.json | sed 's/"version":"//')

if [ -z "$CP_VERSION" ]; then
echo "ClassicPress version not detected correctly!"
cat "$TMPDIR/cp-latest.json"
Expand Down

0 comments on commit 32bf896

Please sign in to comment.