diff --git a/tests/ci/integration/run_mysql_integration.sh b/tests/ci/integration/run_mysql_integration.sh index bd5f9b7dd5..82a69ccab3 100755 --- a/tests/ci/integration/run_mysql_integration.sh +++ b/tests/ci/integration/run_mysql_integration.sh @@ -39,7 +39,7 @@ cd ${SCRATCH_FOLDER} function mysql_patch_reminder() { # Check latest MySQL version. MySQL often updates with large changes depending on OpenSSL all at once, so we pin to a specific version. - LATEST_MYSQL_VERSION_TAG=`git tag --sort=-taggerdate | head -n 1` + LATEST_MYSQL_VERSION_TAG=`git tag --sort=-taggerdate | tail -1` if [[ "${LATEST_MYSQL_VERSION_TAG}" != "${MYSQL_VERSION_TAG}" ]]; then aws cloudwatch put-metric-data --namespace AWS-LC --metric-name MySQLVersionMismatch --value 1 else