generate_source_tarball.sh: Use long-style argument to grep

Related: RHEL-30946
This commit is contained in:
Thomas Fitzsimmons 2024-01-29 13:13:00 -05:00 committed by Andrew Hughes
parent 3e53a21aff
commit a97516ad23
2 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ if [ "$OPENJDK_LATEST" != "" ] ; then
VERSION=$(git ls-remote --tags --refs --sort=-version:refname \
"${OPENJDK_URL_DEFAULT}/${PROJECT_NAME}/${REPO_NAME}.git" \
"jdk-${FEATURE_VERSION}*" \
| grep -v '\-ga$' \
| grep --invert-match '\-ga$' \
| head --lines 1 | cut --characters 52-)
FILE_NAME_ROOT=open${VERSION}
WITH_TEMP=1

View File

@ -2529,6 +2529,7 @@ cjc.mainProgram(args)
- generate_source_tarball.sh: Ignore -ga tags with OPENJDK_LATEST
- generate_source_tarball.sh: Fix whitespace
- generate_source_tarball.sh: Remove trailing period in echo
- generate_source_tarball.sh: Use long-style argument to grep
- Related: RHEL-30946
* Sun Apr 14 2024 Andrew Hughes <gnu.andrew@redhat.com> - 1:21.0.3.0.1-0.2.ea