Skip to content

Commit 18b6730

Browse files
committed
fix: use marker-based extraction for Solr version check
1 parent 39e5047 commit 18b6730

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/solr9-setup-multidev.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ step "Verifying environment"
6363
terminus env:info "$SITE_ENV"
6464

6565
step "Checking Solr version"
66-
SOLR_VER=$(terminus drush "$SITE_ENV" -- ev "echo isset(\$_ENV['search_version']) ? \$_ENV['search_version'] : 'not set';" 2>&1 | head -1)
66+
SOLR_VER=$(terminus drush "$SITE_ENV" -- ev "echo 'SOLR_VER:' . (isset(\$_ENV['search_version']) ? \$_ENV['search_version'] : 'not_set');" 2>&1 | grep -o 'SOLR_VER:[^ ]*' || true)
67+
SOLR_VER="${SOLR_VER#SOLR_VER:}"
6768
echo "Solr version: $SOLR_VER"
6869
if [ "$SOLR_VER" != "9" ]; then
6970
echo "::error::Expected Solr version 9, got: $SOLR_VER"

0 commit comments

Comments
 (0)