Skip to content

Commit

Permalink
Ignore the newrelic error
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Nov 9, 2023
1 parent 07099c8 commit 95fe610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/validate-fixture-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ main(){
TESTED_UP_TO=$(grep -i "Tested up to:" "${README_FILE_PATH}" | tr -d '\r\n' | awk -F ': ' '{ print $2 }')
echo "Tested Up To: ${TESTED_UP_TO}"
local FIXTURE_VERSION
FIXTURE_VERSION=$(terminus wp "${TERMINUS_SITE}.dev" -- core version 2>&1)
# Ignore NewRelic error.
FIXTURE_VERSION=$(terminus wp "${TERMINUS_SITE}.dev" -- core version 2>&1 | grep -v "PHP Startup: Unable to load dynamic library" | awk '/^[0-9]+\.[0-9]+(\.[0-9]+)?$/ {print $0; exit}')
echo "Fixture Version: ${FIXTURE_VERSION}"

if ! php -r "exit(version_compare('${TESTED_UP_TO}', '${FIXTURE_VERSION}'));"; then
Expand Down

0 comments on commit 95fe610

Please sign in to comment.