Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Nov 13, 2024
1 parent 089f8b7 commit 15ed0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/install-cp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if [[ "$CP_VERSION" == latest ]]; then
download \
https://api.github.com/repos/ClassicPress/ClassicPress-release/releases/latest \
"$TMPDIR/cp-latest.json"
CP_VERSION=$(grep -o '"tag_name":"[^"]*' $TMPDIR/cp-latest.json | sed 's/"tag_name":"//')
CP_VERSION="$(grep -Po '"tag_name":\s*"[^"]+"' "$TMPDIR/cp-latest.json" | cut -d'"' -f4)"

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

0 comments on commit 15ed0bb

Please sign in to comment.