Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Nov 6, 2023
1 parent b2236e3 commit af32edf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tooling/release_download_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ print_verbose "IVT : Verifying Tag '$TAG'"
#
##########################################################################################################################

if [[ "$TAG" =~ ^jdk8u.* ]]; then
if echo "$TAG" | grep jdk8u > /dev/null; then
MAJOR_VERSION=8
elif [[ "$TAG" =~ ^jdk-.* ]]; then
elif echo "$TAG" | grep ^jdk- > /dev/null; then
MAJOR_VERSION=$(echo "$TAG" | cut -d- -f2 | cut -d. -f1 | cut -d\+ -f1)
else
# Probably a beta with the tag starting jdkXXu
Expand Down Expand Up @@ -171,7 +171,8 @@ if [ "$SKIP_DOWNLOADING" = "false" ]; then
if echo "$TAG" | grep ea-beta; then
FILTER="ea_${MAJOR_VERSION}"
else
FILTER=${TAG//+/%2B}
# shellcheck disable=SC2001
FILTER=$(echo "$TAG" | sed 's/+/%2B/g')
fi

# Parse the releases list for the one we want and download everything in it
Expand Down

0 comments on commit af32edf

Please sign in to comment.