We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089f8b7 commit 15ed0bbCopy full SHA for 15ed0bb
bin/install-cp-tests.sh
@@ -43,7 +43,7 @@ if [[ "$CP_VERSION" == latest ]]; then
43
download \
44
https://api.github.com/repos/ClassicPress/ClassicPress-release/releases/latest \
45
"$TMPDIR/cp-latest.json"
46
- 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)"
47
48
if [ -z "$CP_VERSION" ]; then
49
echo "ClassicPress version not detected correctly!"
0 commit comments