generate_source_tarball.sh: Use long-style argument to grep

Related: RHEL-52723
This commit is contained in:
Thomas Fitzsimmons 2024-01-29 13:13:00 -05:00 committed by Andrew Hughes
parent 379c07bcec
commit 19127d378c
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

@ -2539,6 +2539,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-52723
* Sat Aug 03 2024 Andrew Hughes <gnu.andrew@redhat.com> - 1:21.0.3.0.1-0.1.ea