Skip to content

Commit 15ed0bb

Browse files
committed
Fix again
1 parent 089f8b7 commit 15ed0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/install-cp-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if [[ "$CP_VERSION" == latest ]]; then
4343
download \
4444
https://api.github.com/repos/ClassicPress/ClassicPress-release/releases/latest \
4545
"$TMPDIR/cp-latest.json"
46-
CP_VERSION=$(grep -o '"tag_name":"[^"]*' $TMPDIR/cp-latest.json | sed 's/"tag_name":"//')
46+
CP_VERSION="$(grep -Po '"tag_name":\s*"[^"]+"' "$TMPDIR/cp-latest.json" | cut -d'"' -f4)"
4747

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

0 commit comments

Comments
 (0)