Skip to content

Commit

Permalink
Update setup-wordpress-env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed Dec 16, 2024
1 parent a50e3f7 commit 5d16a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/files/setup-wordpress-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ EXIT=0
for PLUGIN in projects/plugins/*/composer.json; do
DIR="${PLUGIN%/composer.json}"
NAME="$(basename "$DIR")"

echo "::group::Installing plugin $NAME into WordPress"
if [[ $NAME != 'jetpack' || $NAME != 'wpcomsh' ]]; then
if [[ $NAME != 'jetpack' && $NAME != 'wpcomsh' ]]; then
continue;
fi

echo "::group::Installing plugin $NAME into WordPress"

if php -r 'exit( preg_match( "/^>=\\s*(\\d+\\.\\d+)$/", $argv[1], $m ) && version_compare( PHP_VERSION, $m[1], "<" ) ? 0 : 1 );' "$( jq -r '.require.php // ""' "$DIR/composer.json" )"; then
echo "::endgroup::"
echo "Skipping install of plugin $NAME, requires PHP $( jq -r '.require.php // ""' "$DIR/composer.json" )"
Expand Down

0 comments on commit 5d16a15

Please sign in to comment.