From 95fe61092267edf34698c7fc9e296a6fa96103d6 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Thu, 9 Nov 2023 08:34:59 -0700 Subject: [PATCH] Ignore the newrelic error --- bin/validate-fixture-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/validate-fixture-version.sh b/bin/validate-fixture-version.sh index eb30cc9..f5d0eff 100755 --- a/bin/validate-fixture-version.sh +++ b/bin/validate-fixture-version.sh @@ -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