diff --git a/generate_source_tarball.sh b/generate_source_tarball.sh index f23df66..09a25fd 100755 --- a/generate_source_tarball.sh +++ b/generate_source_tarball.sh @@ -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 diff --git a/java-21-openjdk.spec b/java-21-openjdk.spec index f459b11..84a14c8 100644 --- a/java-21-openjdk.spec +++ b/java-21-openjdk.spec @@ -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 - 1:21.0.3.0.1-0.1.ea